Skip to content

fix(arborist): don't flag inert optional deps in strict-allow-scripts#1

Closed
JamieMagee wants to merge 1 commit into
latestfrom
fix/strict-allow-scripts-inert
Closed

fix(arborist): don't flag inert optional deps in strict-allow-scripts#1
JamieMagee wants to merge 1 commit into
latestfrom
fix/strict-allow-scripts-inert

Conversation

@JamieMagee

Copy link
Copy Markdown
Owner

Fixes npm#9562.

strict-allow-scripts walked the ideal tree and rejected inert optional deps like fsevents on Linux, even though reify removes them before any install script runs. The shared collectUnreviewedScripts walk now skips inert nodes, so the strict check matches what actually installs. approve-scripts (actual tree) was already correct.

@JamieMagee

Copy link
Copy Markdown
Owner Author

Superseded by npm#9597 (opened against npm/cli).

@JamieMagee JamieMagee closed this Jun 23, 2026
@JamieMagee JamieMagee deleted the fix/strict-allow-scripts-inert branch June 23, 2026 14:33
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.

[BUG] "npm ci" with "strict-allow-scripts" rejects package that "approve-scripts" cannot see

1 participant