Skip to content

Commit

Permalink
fix(package-template): fix package template
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley committed Apr 24, 2018
1 parent 9b5ede7 commit bc656c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/mergeContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
10 changes: 6 additions & 4 deletions src/templates/core/package.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify":"^3.0.0"
},
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
]
"jest": {
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
]
}
}
6 changes: 2 additions & 4 deletions src/templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@
"src/**/*.{js,jsx}"
],
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"testPathIgnorePatterns": [
"*.stories.{js,jsx}"
"/node_modules/",
"(.stories)\\.(jsx)$"
]
}
}

0 comments on commit bc656c1

Please sign in to comment.