add error message for package.json not found
This commit is contained in:
parent
1ee463d1c2
commit
75bbb5cb64
@ -132,6 +132,9 @@ if (args.file) {
|
||||
}
|
||||
} else {
|
||||
packageFile = require("find-up").sync("package.json");
|
||||
if (!packageFile) {
|
||||
finish(new Error(`Unable to find package.json in this or any parent directories`));
|
||||
}
|
||||
}
|
||||
|
||||
let dependencyTypes;
|
||||
|
Loading…
Reference in New Issue
Block a user