Files
pnpm/pkg-manager/link-bins
Zoltan Kochan 4c765b45b6 fix(link-bins): use fs.promises.realpath in getBinNodePaths tests for Windows 8.3 paths
fs.realpathSync uses a JS-only implementation that only resolves symlinks,
not Windows 8.3 short names (e.g., RUNNER~1). Switch to fs.promises.realpath
which uses the native uv_fs_realpath (GetFinalPathNameByHandleW on Windows)
to properly resolve 8.3 short paths to their long form.
2026-02-23 22:18:51 +01:00
..
2025-10-21 15:30:20 +02:00
2026-02-18 14:54:09 +01:00

@pnpm/link-bins

Link bins to node_modules/.bin

npm version

Installation

pnpm add @pnpm/link-bins

Usage

import linkBins, {linkBinsOfPackages} from '@pnpm/link-bins'

function warn (msg) { console.warn(msg) }

await linkBins('node_modules', 'node_modules/.bin', {warn})

const packages = [{manifest: packageJson, location: pathToPackage}]
await linkBinsOfPackages(packages, 'node_modules/.bin', {warn})

License

MIT