X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/lib
opt
/
alt
/
alt-nodejs16
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
??
..
??
arborist-cmd.js
(627 B)
??
auth
??
base-command.js
(2.81 KB)
??
cli.js
(3.36 KB)
??
commands
??
lifecycle-cmd.js
(503 B)
??
npm.js
(13.25 KB)
??
package-url-cmd.js
(1.88 KB)
??
utils
??
workspaces
Editing: 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 usage = ['[-- <args>]'] static isShellout = true async exec (args, cb) { return this.npm.exec('run-script', [this.constructor.name, ...args]) } async execWorkspaces (args, filters, cb) { return this.npm.exec('run-script', [this.constructor.name, ...args]) } } module.exports = LifecycleCmd
Upload File
Create Folder