PATH:
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
run-script
/
lib
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 })
[-] run-script.js
[edit]
[+]
..
[-] make-spawn-args.js
[edit]
[-] package-envs.js
[edit]
[+]
node-gyp-bin
[-] validate-options.js
[edit]
[-] is-windows.js
[edit]
[-] run-script-pkg.js
[edit]
[-] set-path.js
[edit]
[-] is-server-package.js
[edit]
[-] escape.js
[edit]
[-] signal-manager.js
[edit]