Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Harden PNPM setup to mitigate supply chain attacks (#14025)
Damian Legawiec93fe6fb7af05
diff --git a/package.json b/package.jsonindex a49a6092e6..75f7982e55 100644--- a/package.json+++ b/package.json@@ -24,7 +24,7 @@"@biomejs/biome": "^2.4.14","turbo": "^2.9.9"},- "packageManager": "[email protected]",+ "packageManager": "[email protected]","engines": {"node": ">=20"},diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex dee51e928d..2aac750c4c 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,2 +1,26 @@packages:- "packages/*"++# Supply-chain hardening — see https://pnpm.io/supply-chain-security+#+# minimumReleaseAge: delay installing newly-published versions of any+# dependency by 7 days (10080 minutes). Catches malicious releases that+# get yanked from the registry within hours of publish.+#+# blockExoticSubdeps: refuse transitive dependencies pulled from git+# URLs, raw tarballs, or other non-registry sources. Direct deps can+# still opt into exotic sources; subdeps cannot smuggle one in. Default+# becomes true in pnpm 11.+#+# trustPolicy: fail the install if a package's trust level has dropped+# (e.g. previously signed releases now arriving without provenance).+# Defends against publisher takeover via leaked credentials.+#+# dangerouslyAllowAllBuilds: explicitly pinned to false (already the+# default). install scripts only run for packages approved via+# `pnpm approve-builds` — silently flipping this on would auto-run+# every dependency's postinstall.+minimumReleaseAge: 10080+blockExoticSubdeps: true+trustPolicy: no-downgrade+dangerouslyAllowAllBuilds: false