Skip to content

Commit

Permalink
Merge pull request #35 from mischah/fix-descriptions
Browse files Browse the repository at this point in the history
Bring back descriptions
  • Loading branch information
ruyadorno authored Mar 5, 2019
2 parents e57a8a1 + c0b77fb commit 43ed8a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ if (!tasks || Object.keys(tasks).length < 1) {
// get package.json descriptions value
if (argv.descriptions) {
try {
descriptions = { exports: {} };
pkgInfo(descriptions, { dir: cwd, include: ["ntl"] });
descriptions = descriptions.exports.ntl.descriptions || {};
descriptions = readPkg.sync({ cwd: cwd }).ntl.descriptions;
} catch (e) {
console.warn("No descriptions for your npm scripts found");
error(e, "No descriptions for your npm scripts found");
}
}

Expand Down

0 comments on commit 43ed8a8

Please sign in to comment.