// 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 usage = ['[-- <args>]'] static isShellout = true static workspaces = true static ignoreImplicitWorkspace = false async exec (args) { return this.npm.exec('run-script', [this.constructor.name, ...args]) } async execWorkspaces (args) { return this.npm.exec('run-script', [this.constructor.name, ...args]) } } module.exports = LifecycleCmd
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
commands | Folder | 0755 |
|
|
utils | Folder | 0755 |
|
|
workspaces | Folder | 0755 |
|
|
arborist-cmd.js | File | 1.59 KB | 0644 |
|
base-command.js | File | 3.86 KB | 0644 |
|
cli.js | File | 4.21 KB | 0644 |
|
lifecycle-cmd.js | File | 554 B | 0644 |
|
npm.js | File | 14.02 KB | 0644 |
|
package-url-cmd.js | File | 1.95 KB | 0644 |
|