PHP 8.2.30
Preview: run-script.js Size: 516 B
/opt/alt/alt-nodejs19/root/usr/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: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
314 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
113 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
825 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
699 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
2.68 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
516 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.47 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
820 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.18 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download

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