Skip to content

Commit

Permalink
Merge pull request #25 from jihchi/master
Browse files Browse the repository at this point in the history
fix(print): print the script contents too
  • Loading branch information
bahmutov committed Feb 23, 2017
2 parents e81eee7 + 4431eda commit f86a09a
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(function (k) { return k + '\n ' + pkg.scripts[k] })

printNames('Available scripts are', names)
}

const npmErrorLoggers = {
Expand Down

0 comments on commit f86a09a

Please sign in to comment.