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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user