Add npm allowScripts policy for dependency install scripts

Allow install scripts for the packages we actually need (esbuild for
Vite builds, fsevents for dev file watching, unrs-resolver for n8n
linting) and deny the rest (core-js, isolated-vm,
eslint-plugin-n8n-nodes-base) so npm 11's install-script warning is
covered.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-06-24 23:14:33 +02:00
parent a0d3806c21
commit 9c399c29bd

View File

@@ -33,6 +33,14 @@
"form-data": "^4.0.6",
"js-yaml": "^4.2.0"
},
"allowScripts": {
"esbuild": true,
"fsevents": true,
"unrs-resolver": true,
"core-js": false,
"isolated-vm": false,
"eslint-plugin-n8n-nodes-base": false
},
"license": "MIT",
"packageManager": "npm@11.8.0",
"dependencies": {