From f0f73e4d7251cb91d0de6d505fadc1daf6c0717b Mon Sep 17 00:00:00 2001 From: JAE Date: Fri, 27 Mar 2026 03:13:53 +0000 Subject: [PATCH] fix: strip husky prepare script + --ignore-scripts in Docker build --- packages/web-ui/example/Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/web-ui/example/Dockerfile b/packages/web-ui/example/Dockerfile index ec1b30e..a90fb31 100644 --- a/packages/web-ui/example/Dockerfile +++ b/packages/web-ui/example/Dockerfile @@ -17,15 +17,17 @@ WORKDIR /monorepo # Copy entire monorepo so file: workspace links resolve 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 -# HUSKY=0 prevents the prepare script from failing -RUN cd packages/ai && npm install && npm run build -RUN cd packages/tui && npm install && npm run build -RUN cd packages/agent && npm install && npm run build -RUN cd packages/web-ui && npm install && npm run build +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 example app dependencies -RUN cd packages/web-ui/example && npm install +RUN cd packages/web-ui/example && npm install --ignore-scripts # Install Playwright Chromium RUN cd packages/web-ui/example && npx playwright install chromium