Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lifecycle-cmd.js « utils « lib « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94b109942aa0b1486376545af306aa1060796318 (plain)
1
2
3
4
5
6
7
8
9
10
// The implementation of commands that are just "run a script"
// test, start, stop, restart

const usageUtil = require('./usage.js')

module.exports = (npm, stage) => {
  const cmd = (args, cb) => npm.commands['run-script']([stage, ...args], cb)
  const usage = usageUtil(stage, `npm ${stage} [-- <args>]`)
  return Object.assign(cmd, { usage })
}