PHP 8.3.31
Preview: lifecycle-cmd.js Size: 542 B
/opt/alt/alt-nodejs24/root/lib/node_modules/npm/lib/lifecycle-cmd.js

const BaseCommand = require('./base-cmd.js')

// The implementation of commands that are just "run a script"
// e.g. 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', [this.constructor.name, ...args])
  }

  async execWorkspaces (args) {
    return this.npm.exec('run', [this.constructor.name, ...args])
  }
}

module.exports = LifecycleCmd

Directory Contents

Dirs: 3 × Files: 7

Name Size Perms Modified Actions
cli DIR
- drwxr-xr-x 2026-05-14 18:53:29
Edit Download
commands DIR
- drwxr-xr-x 2026-05-14 18:53:29
Edit Download
utils DIR
- drwxr-xr-x 2026-05-14 18:53:29
Edit Download
1.59 KB lrw-r--r-- 2026-04-24 15:56:02
Edit Download
13.94 KB lrw-r--r-- 2026-04-24 15:56:02
Edit Download
407 B lrw-r--r-- 2026-04-24 15:56:02
Edit Download
542 B lrw-r--r-- 2026-04-24 15:56:02
Edit Download
16.54 KB lrw-r--r-- 2026-04-24 15:56:02
Edit Download
1.90 KB lrw-r--r-- 2026-04-24 15:56:02
Edit Download
9.18 KB lrw-r--r-- 2026-04-24 15:56:02
Edit Download

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