Skip to content

Commit 898f3a1

Browse files
committed
chore(pnpm): drop dead .pnpmrc, declare pnpm defaults in pnpm-workspace.yaml
pnpm v11 reads settings from pnpm-workspace.yaml (and the npm-compat subset from .npmrc), not from .pnpmrc. The .pnpmrc file previously committed was being silently ignored — every setting in it was a no-op. Changes: - Delete .pnpmrc (dead file, pnpm does not read it). - Append to pnpm-workspace.yaml: - autoInstallPeers: true pnpm default, declared explicitly - enablePrePostScripts: true pnpm default, declared explicitly (husky) - saveExact: true pin exact on `pnpm add` No behavioral change — these match current pnpm defaults. Declaring explicitly hardens against future pnpm default flips silently diverging across the fleet.
1 parent 50f9b2f commit 898f3a1

2 files changed

Lines changed: 13 additions & 27 deletions

File tree

.pnpmrc

Lines changed: 0 additions & 27 deletions
This file was deleted.

pnpm-workspace.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,16 @@ trustPolicy: no-downgrade
8585
trustPolicyExclude:
8686
- '@yarnpkg/core@4.5.0'
8787
- '@yarnpkg/libzip@3.2.2'
88+
89+
# Auto-install missing peer deps (pnpm default). Declared explicitly
90+
# so a future default flip can't silently change install behavior.
91+
autoInstallPeers: true
92+
93+
# Run pre/post lifecycle scripts on the workspace root (e.g.
94+
# prepare -> husky). This is the pnpm default; declared explicitly
95+
# so a future default flip can't silently disable husky setup.
96+
enablePrePostScripts: true
97+
98+
# Pin exact versions on `pnpm add`. Catalog and overrides should
99+
# also be exact pins (5.24.0, not ^5.24.0).
100+
saveExact: true

0 commit comments

Comments
 (0)