From 0caab5381cf7bcb43107575bd4eab1a2f5842d9c Mon Sep 17 00:00:00 2001 From: JAE Date: Fri, 27 Mar 2026 03:17:41 +0000 Subject: [PATCH] fix: install all deps from monorepo root so tsgo + bins are hoisted --- packages/web-ui/example/Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/web-ui/example/Dockerfile b/packages/web-ui/example/Dockerfile index a90fb31..23c9859 100644 --- a/packages/web-ui/example/Dockerfile +++ b/packages/web-ui/example/Dockerfile @@ -14,23 +14,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /monorepo -# Copy entire monorepo so file: workspace links resolve +# Copy entire monorepo COPY . . -# Kill the husky prepare script - binary doesn't exist in container +# Remove husky prepare script from root package.json RUN node -e "const p=require('./package.json'); delete p.scripts.prepare; require('fs').writeFileSync('./package.json', JSON.stringify(p,null,2))" -# Install and build workspace packages in dependency order -RUN cd packages/ai && npm install --ignore-scripts && npm run build -RUN cd packages/tui && npm install --ignore-scripts && npm run build -RUN cd packages/agent && npm install --ignore-scripts && npm run build -RUN cd packages/web-ui && npm install --ignore-scripts && npm run build +# Install ALL workspace deps from root — this hoists tsgo and other bins +RUN npm install -# Install example app dependencies -RUN cd packages/web-ui/example && npm install --ignore-scripts +# Build packages in dependency order +RUN cd packages/ai && npm run build +RUN cd packages/tui && npm run build +RUN cd packages/agent && npm run build +RUN cd packages/web-ui && npm run build # Install Playwright Chromium -RUN cd packages/web-ui/example && npx playwright install chromium +RUN npx playwright install chromium WORKDIR /monorepo/packages/web-ui/example