Features
-
Plug'n'Play support added #2902
To use Plug'n'Play in a project, create a
.npmrc
file in its root with the following content:node-linker=pnp ; Setting symlink to false is optional. symlink=false
All the commands will work, when executed through
pnpm run
. However, directly executing a.js
file 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
symlink
is set tofalse
, pnpm creates a virtual store directory (node_modules/.pnpm
) without any symlinks.