Skip to content

chore(pnpm): drop dead .pnpmrc, declare pnpm defaults in pnpm-workspace.yaml#617

Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/pnpmrc
Apr 25, 2026
Merged

chore(pnpm): drop dead .pnpmrc, declare pnpm defaults in pnpm-workspace.yaml#617
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/pnpmrc

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton John-David Dalton (jdalton) commented Apr 25, 2026

Summary

pnpm v11 reads settings from pnpm-workspace.yaml (and the npm-compat subset from .npmrc), not from .pnpmrc. The .pnpmrc file previously committed to main was being silently ignored.

Amended: drop the .pnpmrc entirely (it was dead), and add pnpm defaults explicitly to pnpm-workspace.yaml:

  • autoInstallPeers: true — pnpm default, declared explicitly.
  • enablePrePostScripts: true — pnpm default, declared explicitly (husky).
  • saveExact: true — pin exact on pnpm add.

Existing settings preserved: loglevel, trustPolicy, allowBuilds, pmOnFail, overrides, minimumReleaseAge, minimumReleaseAgeExclude. The .npmrc keeps handling ignore-scripts, min-release-age, and loglevel from the npm-compat subset.

No behavioral change

Install/resolve/build work identically. This just locks in current behavior against future pnpm default flips.

Test plan

  • pnpm install --lockfile-only passes (no lockfile changes needed).
  • CI green.

@jdalton John-David Dalton (jdalton) changed the title chore(pnpm): add canonical .pnpmrc chore(pnpm): drop dead .pnpmrc, declare pnpm defaults in pnpm-workspace.yaml Apr 25, 2026
…ce.yaml

pnpm v11 reads settings from pnpm-workspace.yaml (and the npm-compat
subset from .npmrc), not from .pnpmrc. The .pnpmrc file previously
on main was silently ignored.

Changes:
- Delete .pnpmrc (dead file, pnpm does not read it).
- Add 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 + existing
.npmrc settings. Declaring explicitly hardens against future pnpm
default flips silently diverging across the fleet.
@jdalton John-David Dalton (jdalton) merged commit f163dc1 into main Apr 25, 2026
11 checks passed
@jdalton John-David Dalton (jdalton) deleted the chore/pnpmrc branch April 25, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants