Skip to content

Commit

Permalink
Merge pull request adobe#13352 from adobe/saurabh95/npm-installer-dep…
Browse files Browse the repository at this point in the history
…endencies-check

Added check for length of dependencies also in npm-installer.js
  • Loading branch information
zaggino authored May 4, 2017
2 parents ab73e2b + 52b08fc commit 4aab9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensibility/node/npm-installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function performNpmInstallIfRequired(npmOptions, validationResult, callback) {
packageJson = null;
}

if (!packageJson || !packageJson.dependencies) {
if (!packageJson || !packageJson.dependencies || !Object.keys(packageJson.dependencies).length) {
return finish();
}

Expand Down

0 comments on commit 4aab9a7

Please sign in to comment.