npm now has the ability to approve/deny scripts per-package just like pnpm 🎉
Post
docs.npmjs.comnpm-approve-scripts | npm DocsApprove install scripts for specific dependencies
It's a phased rollout and It'll be fully usable in the next major release coming soon AFAIK. For now I'd stick to this recommendation lavamoat.github.io/guides/harde...
lavamoat.github.ioHarden your local development environmentA guide on how to settings that minimise the risk of local dev compromise.
Could be updated to include the relatively new allow-file, allow-directory and allow-remote flags besides the allow-git one. Or did you purposefully exclude them for some reason ?
0 reposts0 likes
You are misreading allow-scripts. I was talking about the flags that were introduced in v11.15. github.com/npm/cli/comm...
github.comfeat: add allow-git/allow-file/allow-directory/allow-remote configs · npm/cli@8df10f5(cherry picked from commit 8605d1088145593585278977e25b353b5dd6a1ed)