Post

I wish more systems would adopt what IPS does in Illumos derivatives: Install scripts have a pre-determined list of actions they're allowed to run. If you need something else, you must handle it yourself in normal operation.

Feross@feross.bsky.social

npm 12 turns install scripts OFF by default. For years, installing a package could run code on your machine before you imported a line of it. Here's what changed: risky.biz/RBNEWSSI140/

1 repost11 likes

there could be a middle ground, but otoh I can't think of any valid use-cases for install scripts in a decent package manager

afaict they're used in the npm ecosystem to build or download native dependencies (both should be handled by the package manager and not by install scripts), and to set up boilerplate in your repo (e.g. adding git hooks or prisma generate, which should be done as a separate setup command)