add error message for package.json not found

This commit is contained in:
silverwind 2019-05-29 22:04:21 +02:00
parent 1ee463d1c2
commit 75bbb5cb64
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -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;