You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how npm approve-scripts --allow-scripts-pending can be used to list packages not explicitly approved/denied it would be useful to have something to report unused approvals:
Packages no longer installed (e.g. transitive dependencies have changed)
Packages no longer having a postinstall script (e.g. a package that used to have one no longer does)
My current workaround is to remove the entire allowScripts and use --allow-scripts-pending again but it is a bit more tedious than it should be and is harder to automate.
Activity
JamieMagee commentedon Jun 23, 2026
I like the idea of some sort of
prunecommand, but I'd like to land #9545 first.EDIT: #9629
feat(install-scripts): prune unused allowScripts entries (#9651)