PHP 8.2.30
Preview: lifecycle-cmd.js Size: 503 B
//proc/thread-self/root/proc/thread-self/root/opt/alt/alt-nodejs16/root/lib/node_modules/npm/lib/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

Directory Contents

Dirs: 4 × Files: 6

Name Size Perms Modified Actions
auth DIR
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
commands DIR
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
utils DIR
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
627 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
2.81 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
3.36 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
503 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
13.25 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
1.88 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).