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

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

const BaseCommand = require('../base-command.js')
class LifecycleCmd extends BaseCommand {
  static get usage () {
    return ['[-- <args>]']
  }

  exec (args, cb) {
    this.npm.commands['run-script']([this.constructor.name, ...args], cb)
  }
}
module.exports = LifecycleCmd