mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
7 lines
210 B
Batchfile
7 lines
210 B
Batchfile
@IF EXIST "%~dp0\node.exe" (
|
|
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\pnpm.js" %*
|
|
) ELSE (
|
|
@SETLOCAL
|
|
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
node "%~dp0\node_modules\corepack\dist\pnpm.js" %*
|
|
) |