feat: default yarn nodeLinker to pnpm#1852
Conversation
Change the default yarn linker written by vp create and vp migrate from node-modules to pnpm (real on-disk node_modules via a content-addressable store, unlike Plug'n'Play zip entries that break @oxlint/migrate's fileURLToPath resolution). nodeLinker is only set when absent, so projects that already pin a linker keep their value. Migrating a yarn project without an explicit linker now switches it to pnpm's strict resolution.
✅ Deploy Preview for viteplus-preview canceled.
|
Why it fails under yarn's
|
What
Change the default yarn linker written by
vp createandvp migratefromnode-modulestopnpm.Why
The
pnpmlinker keeps real on-disknode_modulesentries (backed by a content-addressable store), so it avoids Plug'n'Play's zip entries that break@oxlint/migrate'sfileURLToPathresolution, while giving strict resolution and disk savings.Notes
nodeLinkeris only set when absent, so projects that already pin a linker keep their value.Cannot find module).