Skip to content

Commit 50f9b2f

Browse files
committed
chore(pnpm): add canonical .pnpmrc
Align with the fleet-canonical .pnpmrc declared in socket-repo-template. This is part of a cross-repo cascade driven from socket-registry's shamefully-hoist=true removal: every socket-* repo carries the same baseline so install behavior is uniform and future pnpm default flips can't silently diverge across the fleet. Settings: - ignore-scripts=true block install scripts unconditionally - enable-pre-post-scripts=true pnpm default, declared explicitly - minimumReleaseAge=10080 7-day quarantine on newly published versions - auto-install-peers=true pnpm default, declared explicitly - strict-peer-dependencies=false pnpm default, declared explicitly - save-exact=true pin exact on `pnpm add` Deliberately omits shamefully-hoist and node-linker. Hoisting hides phantom transitive-dep usage; isolated linking is the pnpm default and the fleet-consistent choice.
1 parent c03dfa9 commit 50f9b2f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.pnpmrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Block install scripts unconditionally. Native deps that must run
2+
# install scripts (esbuild, etc.) are allowlisted in
3+
# pnpm-workspace.yaml under allowBuilds.
4+
ignore-scripts=true
5+
6+
# Run pre/post lifecycle scripts on the workspace root (e.g.
7+
# prepare -> husky). This is the pnpm default; declared explicitly
8+
# so a future default flip can't silently disable husky setup.
9+
enable-pre-post-scripts=true
10+
11+
# Wait 7 days (10080 minutes) before installing newly published
12+
# versions. Provides a quarantine buffer to detect compromised
13+
# packages before install.
14+
# Allowlist via pnpm-workspace.yaml minimumReleaseAgeExclude.
15+
minimumReleaseAge=10080
16+
17+
# Auto-install missing peer dependencies (pnpm default). Declared
18+
# explicitly to harden against future default flips.
19+
auto-install-peers=true
20+
21+
# Don't fail install on peer-dependency conflicts (pnpm default).
22+
# Declared explicitly to harden against future default flips.
23+
strict-peer-dependencies=false
24+
25+
# Pin exact versions on `pnpm add`. Catalog and overrides should
26+
# also be exact pins (5.24.0, not ^5.24.0).
27+
save-exact=true

0 commit comments

Comments
 (0)