fix: add prepare/preinstall no-ops for npm git dep compatibility

npm runs install+prepare when cloning git deps. Plesk servers with
nodenv can't resolve 'node' during this phase, causing esbuild's
install.js to fail. Adding no-op scripts prevents this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2026-02-15 19:37:45 +00:00
parent 64847594b2
commit c1fd514ce8

View file

@ -34,7 +34,9 @@
"build": "tsc",
"dev": "tsc --watch",
"typecheck": "tsc --noEmit",
"extract": "tsx scripts/extract-types.ts"
"extract": "tsx scripts/extract-types.ts",
"preinstall": "true",
"prepare": "true"
},
"keywords": [
"payload-cms",