Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
20
Dependencies/NodeJS/node_modules/npm/lib/lifecycle-cmd.js
generated
vendored
Normal file
20
Dependencies/NodeJS/node_modules/npm/lib/lifecycle-cmd.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
Reference in New Issue
Block a user