Skip to content

Commit

Permalink
fix: fix an error management
Browse files Browse the repository at this point in the history
  • Loading branch information
NoriSte committed Oct 15, 2019
1 parent a7091a0 commit f7b6fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/read-npm-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const readNpmScripts = () =>
npm.load(() => {
if (!npm.config.sources.project.path) {
reject("No NPM project found");
return;
}
const packageJsonPath = npm.config.sources.project.path.replace(".npmrc", "package.json");
console.log(npmProjectLogPrefix + packageJsonPath);
Expand Down

0 comments on commit f7b6fa9

Please sign in to comment.