Hemifield's picture
download
raw
1.12 kB
#!/usr/bin/env sh
set -eu
# Template for the final Unix npm/npx/corepack bin wrappers in the runtime archive.
#
# Official Unix Node archives ship these as symlinks into lib/node_modules:
# bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js
# bin/npx -> ../lib/node_modules/npm/bin/npx-cli.js
# bin/corepack -> ../lib/node_modules/corepack/dist/corepack.js
#
# PATH-installed Node distribution but is wrong for this archive's extract
# contract. A caller should be able to run `<extract_dir>/bin/npm` directly
# and still use `<extract_dir>/bin/node`, even when that bin directory is not
# already on PATH. cua_node.build replaces the upstream Unix
# symlinks with bin wrappers generated from this template so the archive-owned
# package-manager entrypoints always execute with the archive-owned Node binary.
#
# Windows does not use this template: Node's upstream npm.cmd/npx.cmd/corepack.cmd
# launchers already invoke the colocated `%~dp0\node.exe`.
runtime_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
exec "$runtime_root/bin/node" "$runtime_root/lib/node_modules/npm/bin/npm-cli.js" "$@"

Xet Storage Details

Size:
1.12 kB
·
Xet hash:
8093e60f38f7c9f04e107dda4bc48b3afc2b7d22806f8cce76a8a7f76067cdca

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.