From 483576a9b6e52654a36eb7e30520a4c3cb862fc6 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 8 May 2026 16:17:14 +0800 Subject: [PATCH] fix(frontend): allow build scripts for pnpm to unblock Docker build pnpm 10+ refuses to run dependency build scripts by default and exits with ERR_PNPM_IGNORED_BUILDS, causing `pnpm install` to fail in the frontend Docker image. Whitelist the packages that legitimately need their install scripts (esbuild native binary, @vue-office/pptx, vue-demi) via `pnpm.onlyBuiltDependencies`. --- frontend/package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index a7bd9af3..e532a5c6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -60,5 +60,12 @@ "lightningcss": "none", "esbuild": "^0.25.0", "serialize-javascript": "^7.0.3" + }, + "pnpm": { + "onlyBuiltDependencies": [ + "@vue-office/pptx", + "esbuild", + "vue-demi" + ] } }