ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/@npmcli/run-script/lib
/
lib
node_modules
npm
node_modules
@npmcli
run-script
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
node-gyp-bin
-
chmod
Open
Rename
Delete
escape.js
1.5 MB
chmod
View
DL
Edit
Rename
Delete
is-server-package.js
314 B
chmod
View
DL
Edit
Rename
Delete
is-windows.js
113 B
chmod
View
DL
Edit
Rename
Delete
make-spawn-args.js
1.97 MB
chmod
View
DL
Edit
Rename
Delete
package-envs.js
699 B
chmod
View
DL
Edit
Rename
Delete
run-script-pkg.js
2.69 MB
chmod
View
DL
Edit
Rename
Delete
run-script.js
516 B
chmod
View
DL
Edit
Rename
Delete
set-path.js
1.47 MB
chmod
View
DL
Edit
Rename
Delete
signal-manager.js
820 B
chmod
View
DL
Edit
Rename
Delete
validate-options.js
1.18 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/@npmcli/run-script/lib/set-path.js
const { resolve, dirname, delimiter } = require('path') // the path here is relative, even though it does not need to be // in order to make the posix tests pass in windows const nodeGypPath = resolve(__dirname, '../lib/node-gyp-bin') // Windows typically calls its PATH environ 'Path', but this is not // guaranteed, nor is it guaranteed to be the only one. Merge them // all together in the order they appear in the object. const setPATH = (projectPath, binPaths, env) => { const PATH = Object.keys(env).filter(p => /^path$/i.test(p) && env[p]) .map(p => env[p].split(delimiter)) .reduce((set, p) => set.concat(p.filter(concatted => !set.includes(concatted))), []) .join(delimiter) const pathArr = [] if (binPaths) { pathArr.push(...binPaths) } // unshift the ./node_modules/.bin from every folder // walk up until dirname() does nothing, at the root // XXX we should specify a cwd that we don't go above let p = projectPath let pp do { pathArr.push(resolve(p, 'node_modules', '.bin')) pp = p p = dirname(p) } while (p !== pp) pathArr.push(nodeGypPath, PATH) const pathVal = pathArr.join(delimiter) // XXX include the node-gyp-bin path somehow? Probably better for // npm or arborist or whoever to just provide that by putting it in // the PATH environ, since that's preserved anyway. for (const key of Object.keys(env)) { if (/^path$/i.test(key)) { env[key] = pathVal } } return env } module.exports = setPATH
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply