// 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} [-- ]`) return Object.assign(cmd, { usage }) }