We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e57a8a1 + c0b77fb commit 43ed8a8Copy full SHA for 43ed8a8
cli.js
@@ -71,11 +71,9 @@ if (!tasks || Object.keys(tasks).length < 1) {
71
// get package.json descriptions value
72
if (argv.descriptions) {
73
try {
74
- descriptions = { exports: {} };
75
- pkgInfo(descriptions, { dir: cwd, include: ["ntl"] });
76
- descriptions = descriptions.exports.ntl.descriptions || {};
+ descriptions = readPkg.sync({ cwd: cwd }).ntl.descriptions;
77
} catch (e) {
78
- console.warn("No descriptions for your npm scripts found");
+ error(e, "No descriptions for your npm scripts found");
79
}
80
81
0 commit comments