Skip to content

feat(install-scripts): prune unused allowScripts entries#9651

Merged
owlstronaut merged 1 commit into
npm:latestfrom
JamieMagee:jamiemagee/install-scripts-prune
Jun 25, 2026
Merged

feat(install-scripts): prune unused allowScripts entries#9651
owlstronaut merged 1 commit into
npm:latestfrom
JamieMagee:jamiemagee/install-scripts-prune

Conversation

@JamieMagee

Copy link
Copy Markdown
Contributor

npm install-scripts prune removes allowScripts entries that no longer apply: the package isn't installed, or it no longer has an install script. Covers both approvals and denials, and --dry-run previews without writing.

Closes #9561

Add `npm install-scripts prune` to remove allowScripts entries that no longer match an installed package with an install script. Supports --dry-run and --json.

Closes npm#9561
@JamieMagee JamieMagee requested review from a team as code owners June 24, 2026 21:46
@owlstronaut owlstronaut merged commit c4e5356 into npm:latest Jun 25, 2026
52 checks passed
@JamieMagee JamieMagee deleted the jamiemagee/install-scripts-prune branch June 25, 2026 16:04
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #9662

owlstronaut pushed a commit that referenced this pull request Jun 25, 2026
Backport of #9651 to `release/v11`.

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

report unused allowScripts

2 participants