From c1fd514ce8224aa604e11377c65a0213404bf350 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Sun, 15 Feb 2026 19:37:45 +0000 Subject: [PATCH] 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 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c0f10b..2655eb0 100644 --- a/package.json +++ b/package.json @@ -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",