fix: strip husky prepare script + --ignore-scripts in Docker build
Some checks are pending
CI / build-check-test (push) Waiting to run

This commit is contained in:
JAE 2026-03-27 03:13:53 +00:00
parent f7543e78f5
commit f0f73e4d72

View file

@ -17,15 +17,17 @@ WORKDIR /monorepo
# Copy entire monorepo so file: workspace links resolve # Copy entire monorepo so file: workspace links resolve
COPY . . COPY . .
# Kill the husky prepare script - binary doesn't exist in container
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 # Install and build workspace packages in dependency order
# HUSKY=0 prevents the prepare script from failing RUN cd packages/ai && npm install --ignore-scripts && npm run build
RUN cd packages/ai && npm install && npm run build RUN cd packages/tui && npm install --ignore-scripts && npm run build
RUN cd packages/tui && npm install && npm run build RUN cd packages/agent && npm install --ignore-scripts && npm run build
RUN cd packages/agent && npm install && npm run build RUN cd packages/web-ui && npm install --ignore-scripts && npm run build
RUN cd packages/web-ui && npm install && npm run build
# Install example app dependencies # Install example app dependencies
RUN cd packages/web-ui/example && npm install RUN cd packages/web-ui/example && npm install --ignore-scripts
# Install Playwright Chromium # Install Playwright Chromium
RUN cd packages/web-ui/example && npx playwright install chromium RUN cd packages/web-ui/example && npx playwright install chromium