Skip to content

Commit

Permalink
only warn if a package is listed twice (due to peerDependencies and s…
Browse files Browse the repository at this point in the history
…tuff)
  • Loading branch information
marudor committed Jan 29, 2018
1 parent 1fcdae2 commit 6da5df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/lib/npm/npmProjectUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function getPackageJsonDependencies(
if (contentSection) {
Object.keys(contentSection).forEach(pkgName => {
if (deps[pkgName]) {
throw new Error(`Found ${pkgName} listed twice in package.json!`);
console.warn(`Found ${pkgName} listed twice in package.json!`);
}
deps[pkgName] = contentSection[pkgName];
});
Expand Down

0 comments on commit 6da5df7

Please sign in to comment.