PNpM CLI
Notes
no notes yet
Features
-
Plug'n'Play support added #2902
To use Plug'n'Play in a project, create a
.npmrcfile in its root with the following content:node-linker=pnp ; Setting symlink to false is optional. symlink=falseAll the commands will work, when executed through
pnpm run. However, directly executing a.jsfile with Node.js will fail. Node's resolver should be patched with.pnp.js. So instead ofnode index.js, you should run:node --require=./.pnp.js index.js -
New setting:
symlink#2900When
symlinkis set tofalse, pnpm creates a virtual store directory (node_modules/.pnpm) without any symlinks.