Skip to content

Commit 848f398

Browse files
committed
1.1.4
1 parent 1556372 commit 848f398

2 files changed

Lines changed: 59 additions & 2 deletions

File tree

nscripts.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
const chalk = require('chalk');
33
const dir = process.cwd()+'/package.json';
44
let packageJSON;
5+
56
try {
67
packageJSON = require(dir);
78
} catch(e) {
89
console.error('no package.json');
910
return false;
1011
}
1112

12-
let {scripts} = packageJSON;
13-
console.log('\n');
13+
let { scripts } = packageJSON;
14+
1415
Object.keys(scripts).forEach(key => {
1516
console.log(chalk.black.bgGreen.bold(' '+key+': ')+chalk.inverse(' '+scripts[key]+' \n'));
1617
});

package-lock.json

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)