mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
46598b88bf
Corepack provides shims for Yarn and pnpm in order to soften the developer experience when working on Node projects. Refs: https://github.com/nodejs/node/issues/15244 Refs: https://github.com/nodejs/TSC/issues/904 PR-URL: https://github.com/nodejs/node/pull/39608 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
10 lines
293 B
Bash
10 lines
293 B
Bash
#!/bin/sh
|
|
# TODO Can this be done inside the .pmdoc?
|
|
# TODO Can we extract $PREFIX from the installer?
|
|
cd /usr/local/bin || exit
|
|
|
|
ln -sf ../lib/node_modules/npm/bin/npm-cli.js npm
|
|
ln -sf ../lib/node_modules/npm/bin/npx-cli.js npx
|
|
|
|
ln -sf ../lib/node_modules/corepack/dist/corepack.js corepack
|