PHP 8.2.30
Preview: run-script.js Size: 516 B
//opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js

const rpj = require('read-package-json-fast')
const runScriptPkg = require('./run-script-pkg.js')
const validateOptions = require('./validate-options.js')
const isServerPackage = require('./is-server-package.js')

const runScript = options => {
  validateOptions(options)
  const { pkg, path } = options
  return pkg ? runScriptPkg(options)
    : rpj(path + '/package.json')
      .then(readPackage => runScriptPkg({ ...options, pkg: readPackage }))
}

module.exports = Object.assign(runScript, { isServerPackage })

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
1.50 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
314 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
113 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
1.97 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
699 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
2.69 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
516 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
1.47 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
820 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
1.18 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download

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