From f1b2bd048600228d0108d5f3fc1b32fce672a656 Mon Sep 17 00:00:00 2001 From: TowyTowy <85077986+TowyTowy@users.noreply.github.com> Date: Sat, 11 Jul 2026 20:07:05 +0200 Subject: [PATCH] fix(adventurelog): allow pnpm build scripts so install/update doesn't abort (#15681) AdventureLog's frontend install runs a bare `pnpm i`. On pnpm v10+, build scripts of dependencies (esbuild, es5-ext, svelte-preprocess) are ignored by default and pnpm aborts with ERR_PNPM_IGNORED_BUILDS (exit 1), so the install never reaches `pnpm build`. The shipped frontend/pnpm-workspace.yaml already pins esbuild, so those builds are expected to run. Enable the builds for this app only by appending `dangerouslyAllowAllBuilds: true` to the frontend's pnpm-workspace.yaml before `pnpm i`, in both the install and update paths. The change is guarded so it is not duplicated on re-run, and it is scoped to AdventureLog (which ships no onlyBuiltDependencies) to avoid the global config conflict that a repo-wide setting would cause. Fixes #15670 Co-authored-by: Claude Fable 5 --- ct/adventurelog.sh | 1 + install/adventurelog-install.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 0da4c09c0..98327747e 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -60,6 +60,7 @@ function update_script() { $STD .venv/bin/python -m manage migrate cd /opt/adventurelog/frontend + grep -q "^dangerouslyAllowAllBuilds:" ./pnpm-workspace.yaml 2>/dev/null || echo "dangerouslyAllowAllBuilds: true" >>./pnpm-workspace.yaml $STD pnpm i $STD pnpm build msg_ok "Updated AdventureLog" diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 10e664bc6..b480da0d9 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -72,6 +72,7 @@ BODY_SIZE_LIMIT=Infinity ORIGIN='http://$LOCAL_IP:3000' EOF cd /opt/adventurelog/frontend +grep -q "^dangerouslyAllowAllBuilds:" ./pnpm-workspace.yaml 2>/dev/null || echo "dangerouslyAllowAllBuilds: true" >>./pnpm-workspace.yaml $STD pnpm i $STD pnpm build msg_ok "Installed AdventureLog"