Skip to content

Commit 8be5db5

Browse files
authored
Merge pull request #15 from ethena-labs/ew/pe-1866-harden-pnpm
chore(deps): upgrade to pnpm 11 and harden supply-chain config
2 parents 8683595 + 2023b0e commit 8be5db5

3 files changed

Lines changed: 24 additions & 4 deletions

File tree

.npmrc

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

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
"keywords": [],
2323
"author": "",
2424
"license": "ISC",
25-
"packageManager": "pnpm@10.25.0",
25+
"packageManager": "pnpm@11.3.0",
26+
"engines": {
27+
"node": ">=22.13"
28+
},
2629
"devDependencies": {
2730
"@types/node": "25.3.3",
2831
"prettier": "3.8.1",

pnpm-workspace.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# pnpm-specific settings live here (pnpm v11 no longer reads non-auth/registry
2+
# settings from .npmrc). Registry/auth settings, if any, stay in .npmrc.
3+
4+
# Supply-chain hardening
5+
# Refuse to install package versions younger than 10 days
6+
minimumReleaseAge: 14400
7+
# Fail (don't silently downgrade) if a package's publisher trust level drops
8+
trustPolicy: no-downgrade
9+
# Known-benign provenance downgrades, vetted and exempted from no-downgrade.
10+
# Each is a maintainer that stopped publishing with npm provenance (not an
11+
# attack). Review before adding. See nodejs/undici#4666.
12+
trustPolicyExclude:
13+
- undici-types
14+
# Transitive deps must resolve from the registry, not git/tarball sources
15+
blockExoticSubdeps: true
16+
17+
# Dependencies permitted to run install/build scripts (replaces the v10
18+
# onlyBuiltDependencies list). esbuild fetches its platform binary (via tsx).
19+
allowBuilds:
20+
esbuild: true

0 commit comments

Comments
 (0)