Skip to content

chore: add npm install gate via .npmrc (PLA-2135)#2

Open
skonefal wants to merge 2 commits into
mainfrom
pla-2135-npm-install-gate
Open

chore: add npm install gate via .npmrc (PLA-2135)#2
skonefal wants to merge 2 commits into
mainfrom
pla-2135-npm-install-gate

Conversation

@skonefal

@skonefal skonefal commented Jun 9, 2026

Copy link
Copy Markdown

What

Add .npmrc with:

  • min-release-age=3 (3-day publish-recency cooldown)
  • ignore-scripts=true (block arbitrary install lifecycle scripts)

Why

Part of the PLA-2135 npm install gate rollout. Adds a native supply-chain cooldown + lifecycle-script blocking for this npm-managed repo.

Notes

  • min-release-age requires npm >= 11.10.0 to take effect (otherwise silently inert). Verified locally with npm 11.16.0: npm config get min-release-age3 and npm config get ignore-scriptstrue.

Add .npmrc with min-release-age=3 (3-day publish-recency cooldown) and
ignore-scripts=true (block install lifecycle scripts). Requires npm >=
11.10.0 for min-release-age to take effect.

Towards PLA-2135

Co-authored-by: Cursor <cursoragent@cursor.com>
@skonefal skonefal marked this pull request as ready for review June 9, 2026 12:46
@cursor

cursor Bot commented Jun 9, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Config-only change affecting local/CI installs; may break installs that rely on lifecycle scripts or very new package releases.

Overview
Adds a root .npmrc to enforce npm install-time supply-chain controls for this repo.

min-release-age=3 blocks installing package versions published within the last 3 days (requires npm ≥ 11.10.0). ignore-scripts=true disables install lifecycle scripts (e.g. postinstall), reducing arbitrary script execution during installs.

Part of the PLA-2135 npm install gate rollout; no application code changes.

Reviewed by Cursor Bugbot for commit d606836. Configure here.

Generate the lockfile via npm install honoring the repo .npmrc
(min-release-age=3, ignore-scripts=true) and stop gitignoring it
so dependency versions are pinned for the install gate.

Towards PLA-2135

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant