Skip to content

Commit

Permalink
fix(print): print the script contents too
Browse files Browse the repository at this point in the history
  • Loading branch information
Archie Lee committed Feb 14, 2017
1 parent e81eee7 commit a6d3b0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quick-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ const printNames = require('json-package').printNames
const run = require('./run')

function printAllScripts (pkg) {
printNames('Available scripts are',
Object.keys(pkg.scripts))
var names = Object.keys(pkg.scripts).map(k => k + '\n ' + pkg.scripts[k])

printNames('Available scripts are', names)
}

const npmErrorLoggers = {
Expand Down

0 comments on commit a6d3b0f

Please sign in to comment.