From 478047e62f5ef3ddfc158603e9d52e74989fc695 Mon Sep 17 00:00:00 2001 From: NoisemakerJon <139656120+Noisemaker111@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:26:58 -0400 Subject: [PATCH] Fix cold web build prerequisites --- .github/workflows/ci.yml | 3 +-- apps/web/README.md | 4 +++- apps/web/package.json | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21c007ae..8829b5b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,6 @@ jobs: - run: bun test packages apps/dev scripts web-build: - if: github.event_name == 'push' runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -82,7 +81,7 @@ jobs: key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} restore-keys: bun-${{ runner.os }}- - run: bun install --frozen-lockfile - - run: bun run --cwd apps/web build + - run: bun --cwd=apps/web run build smoke: if: github.event_name == 'push' diff --git a/apps/web/README.md b/apps/web/README.md index 3f1584db..c010da1b 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -8,7 +8,9 @@ The landing page for JGengine and the front door for agents. It runs TanStack St ## Games on the site -`vite build` runs the existing `games-player` plugin, which builds `apps/dev` into `public/play`. The ignored `Games` checkout must be a real `Noisemaker111/JGengine-games` clone with its dependencies installed: +`bun --cwd=apps/web run build` builds the SDK packages before Vite builds the site and the `games-player` plugin builds `apps/dev` into `public/play`. +CI runs this command on cold checkouts for pushes and PRs; deploy uses the same build. +The ignored `Games` checkout must be a real `Noisemaker111/JGengine-games` clone with its dependencies installed: ```sh bun run games:clone diff --git a/apps/web/package.json b/apps/web/package.json index da6db99b..b00ead29 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -5,8 +5,8 @@ "type": "module", "scripts": { "dev": "vite dev", - "build": "vite build", - "deploy:cloudflare": "vite build && wrangler deploy", + "build": "bun --cwd=../.. run build && vite build", + "deploy:cloudflare": "bun run build && wrangler deploy", "check-types": "tsgo --noEmit -p tsconfig.json", "start": "wrangler dev" },