Skip to content

Commit

Permalink
fix(sra): add ignorable packages for generated react app
Browse files Browse the repository at this point in the history
  • Loading branch information
maumercado committed Jun 9, 2019
1 parent f1b2689 commit e26476b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/sra.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,17 @@ const addPackagesAndConfigToPackageJson = async (root, spinner) => {
* @param {Object} deps - Object of dependencies from package.json
*/
const getProperDeps = (deps) => {
const removablePackages = ['chalk', 'commander', 'fs-extra', 'ora', 'validate-npm-package-name', 'boxen'];
const removablePackages = [
'chalk',
'commander',
'fs-extra',,
'cz-conventional-changelog',
'commitizen',
'ora',
'validate-npm-package-name',
'boxen',
'semantic-release'
];
const names = Object.keys(deps).filter(lib => !removablePackages.includes(lib));
const packages = names.map(pkg => `${pkg}@${deps[pkg]}`);
return packages;
Expand Down

0 comments on commit e26476b

Please sign in to comment.