PHP 8.2.30
Preview: lifecycle-cmd.js Size: 554 B
/opt/alt/alt-nodejs19/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
  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

Directory Contents

Dirs: 3 × Files: 6

Name Size Perms Modified Actions
commands DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
utils DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
1.59 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
3.86 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
4.21 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
554 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
14.02 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.95 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download

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