Improved defaults for pnpm
- Sets enableGlobalVirtualStore to
true
. - Sets enablePrePostScripts to
false
. - Sets hoistPattern to an empty array, disabling hoisting.
- Sets ignorePatchFailures to
false
. - Sets optimisticRepeatInstall to
true
. - Sets resolutionMode to
lowest-direct
. - Sets verifyDepsBeforeRun to
install
.
You can extend or override these settings in your own .pnpmfile.cjs
.
pnpm add --config @pnpm/plugin-better-defaults
This will add @pnpm/plugin-better-defaults
to the configDependencies field in your pnpm-workspace.yaml
.
MIT