diff --git a/src/mergeContent.js b/src/mergeContent.js index e6ea57c..7b8448b 100644 --- a/src/mergeContent.js +++ b/src/mergeContent.js @@ -10,7 +10,7 @@ const mergeContent = ({ originalContent, additionalContent }) => { return JSON.stringify(mergedContent, null, 2); } - return `${originalContent}\n${additionalContent}`; + return `${originalContent}\n${additionalContent}`.trimLeft(); }; export default mergeContent; diff --git a/src/templates/core/package.template.json b/src/templates/core/package.template.json index df7b193..5e87d32 100644 --- a/src/templates/core/package.template.json +++ b/src/templates/core/package.template.json @@ -51,8 +51,10 @@ "rollup-plugin-node-resolve": "^3.3.0", "rollup-plugin-uglify":"^3.0.0" }, - "testPathIgnorePatterns": [ - "/build/", - "/node_modules/" - ] + "jest": { + "testPathIgnorePatterns": [ + "/build/", + "/node_modules/" + ] + } } diff --git a/src/templates/react/package.json b/src/templates/react/package.json index ad99ca2..28de1f7 100644 --- a/src/templates/react/package.json +++ b/src/templates/react/package.json @@ -51,10 +51,8 @@ "src/**/*.{js,jsx}" ], "coveragePathIgnorePatterns": [ - "/node_modules/" - ], - "testPathIgnorePatterns": [ - "*.stories.{js,jsx}" + "/node_modules/", + "(.stories)\\.(jsx)$" ] } }