Skip to content

feat: detect install scripts introduced by dependency updates - #201

Merged
43081j merged 2 commits into
e18e:mainfrom
outslept:o/detect-install-scripts
Nov 24, 2026
Merged

43081j merged 2 commits into
e18e:mainfrom
outslept:o/detect-install-scripts

Conversation

@outslept

Copy link
Copy Markdown
Contributor

Closes #199

Warn when newly added packages or upgraded dependencies start running
preinstall, install or postinstall scripts. New packages that run install
scripts are reported, as are upgraded packages that add a script not present
in the base version. The check is controlled by the detect-install-scripts
input and is enabled by default.
@github-actions

Copy link
Copy Markdown

e18e dependency analysis

No dependency warnings found.

@maksimgm

Copy link
Copy Markdown
Contributor

tried a few native packages and the registry already puts node-gyp rebuild in scripts.install for binding.gyp ones, so those get caught. one gap is it only compares script names, so an upgrade that changes what an existing postinstall runs won't show up, might be worth flagging changed contents too

@43081j

43081j commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

i agree it may be nice to one day also check if the script itself changed, but this seems good for now!

@43081j
43081j merged commit f24b26d into e18e:main Nov 24, 2026
5 checks passed
@outslept
outslept deleted the o/detect-install-scripts branch November 24, 2026 10:32
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.

Detect new preinstall / postinstall scripts

3 participants