MINI MINI MANI MO

Path : /opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/utils/
File Upload :
Current File : //opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/utils/lifecycle-cmd.js

// 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)
  }

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

OHA YOOOO