fix: install all deps from monorepo root so tsgo + bins are hoisted
Some checks are pending
CI / build-check-test (push) Waiting to run

This commit is contained in:
JAE 2026-03-27 03:17:41 +00:00
parent f0f73e4d72
commit 0caab5381c

View file

@ -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