fix(ci): generate contracts in all frontend build paths

Run generation before the independently checked Ink workspace typecheck and
copy the generator plus its source contracts into Docker's frontend build
layer.
This commit is contained in:
ethernet 2026-07-23 02:12:27 -04:00
parent 2cdfe35429
commit a1c30df654
2 changed files with 3 additions and 0 deletions

View file

@ -190,6 +190,8 @@ RUN uv sync --frozen --no-install-project --extra all --extra messaging --extra
COPY web/ web/
COPY ui-tui/ ui-tui/
COPY apps/shared/ apps/shared/
COPY scripts/generate_gateway_types.py scripts/generate_gateway_types.py
COPY tui_gateway/contracts.py tui_gateway/contracts.py
RUN cd web && npm run build && \
cd ../ui-tui && npm run build

View file

@ -6,6 +6,7 @@
"scripts": {
"build": "esbuild src/entry-exports.ts --bundle --platform=node --format=esm --packages=external --outdir=dist",
"check": "npm run typecheck",
"pretypecheck": "npm run generate:gateway-types --prefix ../../../apps/shared",
"typecheck": "tsc -b . --noEmit",
"lint": "echo 'ok!'",
"fix": "echo 'nothing to fix'"