Skip to content

Commit 43ed8a8

Browse files
authored
Merge pull request #35 from mischah/fix-descriptions
Bring back descriptions
2 parents e57a8a1 + c0b77fb commit 43ed8a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cli.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ if (!tasks || Object.keys(tasks).length < 1) {
7171
// get package.json descriptions value
7272
if (argv.descriptions) {
7373
try {
74-
descriptions = { exports: {} };
75-
pkgInfo(descriptions, { dir: cwd, include: ["ntl"] });
76-
descriptions = descriptions.exports.ntl.descriptions || {};
74+
descriptions = readPkg.sync({ cwd: cwd }).ntl.descriptions;
7775
} catch (e) {
78-
console.warn("No descriptions for your npm scripts found");
76+
error(e, "No descriptions for your npm scripts found");
7977
}
8078
}
8179

0 commit comments

Comments
 (0)