From 0b063433235f1e91a19918fe4397a487624f6d86 Mon Sep 17 00:00:00 2001 From: meeech <4623+meeech@users.noreply.github.com> Date: Tue, 14 Apr 2026 00:29:15 -0400 Subject: [PATCH] chore: use pnpm in dynamic container commands Replace npx tsc with pnpm exec tsc in container entrypoint command, and npm install -g with pnpm install -g in dynamic Dockerfile generation. Variable names (npm, npmPackages) intentionally kept as they refer to npm-registry packages, not the CLI. --- src/container-runner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/container-runner.ts b/src/container-runner.ts index 33efda0..d467dcd 100644 --- a/src/container-runner.ts +++ b/src/container-runner.ts @@ -298,7 +298,7 @@ async function buildContainerArgs( args.push( '-c', - 'cd /app && npx tsc --outDir /tmp/dist 2>&1 >&2 && ln -sf /app/node_modules /tmp/dist/node_modules && node /tmp/dist/index.js', + 'cd /app && pnpm exec tsc --outDir /tmp/dist 2>&1 >&2 && ln -sf /app/node_modules /tmp/dist/node_modules && node /tmp/dist/index.js', ); return args; @@ -322,7 +322,7 @@ export async function buildAgentGroupImage(agentGroupId: string): Promise dockerfile += `RUN apt-get update && apt-get install -y ${aptPackages.join(' ')} && rm -rf /var/lib/apt/lists/*\n`; } if (npmPackages.length > 0) { - dockerfile += `RUN npm install -g ${npmPackages.join(' ')}\n`; + dockerfile += `RUN pnpm install -g ${npmPackages.join(' ')}\n`; } dockerfile += 'USER node\n';