const BaseCommand = require('./base-cmd.js') // The implementation of commands that are just "run a script" // restart, start, stop, test 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 |
---|---|---|---|---|
cli | Folder | 0755 |
|
|
commands | Folder | 0755 |
|
|
utils | Folder | 0755 |
|
|
arborist-cmd.js | File | 1.58 KB | 0644 |
|
base-cmd.js | File | 4.37 KB | 0644 |
|
cli.js | File | 215 B | 0644 |
|
lifecycle-cmd.js | File | 551 B | 0644 |
|
npm.js | File | 13.76 KB | 0644 |
|
package-url-cmd.js | File | 1.89 KB | 0644 |
|