From 0d7e6b52d2bc66820c95f41d0d2e2ab034f2d323 Mon Sep 17 00:00:00 2001 From: Joshua Oosthuizen Date: Tue, 17 Nov 2026 15:35:13 +0200 Subject: [PATCH] agent install / self-update: install the root's build tools too Found in the VM test: npm ci -w packages/contracts -w apps/agent skipped the monorepo root's devDependencies (tsup, typescript), so the agent couldn't be built. --include-workspace-root brings them in. Co-Authored-By: Claude Opus 5.5 --- apps/agent/deploy/install.sh | 2 +- apps/agent/src/update.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/agent/deploy/install.sh b/apps/agent/deploy/install.sh index f5d626b..a2a66c4 100644 --- a/apps/agent/deploy/install.sh +++ b/apps/agent/deploy/install.sh @@ -57,7 +57,7 @@ if [ ! -d "$DIR/.git" ]; then fi ( cd "$DIR" - NODE_ENV=development npm ci --no-audit --no-fund --include=dev -w packages/contracts -w apps/agent + NODE_ENV=development npm ci --no-audit --no-fund --include=dev --include-workspace-root -w packages/contracts -w apps/agent npm run build -w packages/contracts npm run build -w apps/agent ) diff --git a/apps/agent/src/update.ts b/apps/agent/src/update.ts index 3c6dd53..4bc99dc 100644 --- a/apps/agent/src/update.ts +++ b/apps/agent/src/update.ts @@ -66,7 +66,7 @@ export async function updateAgent(tag: string, currentVersion: string): Promise< } }); await step("Installing and building", async () => { - await exec("npm", ["ci", "--no-audit", "--no-fund", "--include=dev", "-w", "packages/contracts", "-w", "apps/agent"], dir); + await exec("npm", ["ci", "--no-audit", "--no-fund", "--include=dev", "--include-workspace-root", "-w", "packages/contracts", "-w", "apps/agent"], dir); await exec("npm", ["run", "build", "-w", "packages/contracts"], dir); await exec("npm", ["run", "build", "-w", "apps/agent"], dir); });