Skip to content

Commit

Permalink
Fix: minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Aug 19, 2019
1 parent 4f1ac1f commit 7cddd55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/init/npm-utils.js
Expand Up @@ -119,9 +119,9 @@ function check(packages, opt) {
throw error;
}

["dependencies", "devDependencies"].forEach(dependency => {
if (opt[dependency] && typeof fileJson[dependency] === "object") {
deps = deps.concat(Object.keys(fileJson[dependency]));
["dependencies", "devDependencies"].forEach(key => {
if (opt[key] && typeof fileJson[key] === "object") {
deps = deps.concat(Object.keys(fileJson[key]));
}
});

Expand Down

0 comments on commit 7cddd55

Please sign in to comment.