From aeadd97e5f45e6945313e32dc4c8d479ccf11357 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 00:43:49 +0000 Subject: [PATCH] ci(ui-merge): build the five vitest-setup packages before Type Check UI's vitest-setup step On a pull_request whose ui affected scope is empty, the type-check step runs no task and builds nothing under ui/packages/*/dist, so tsconfig.vitest-setup.json's package-directory paths found no declarations. The new step builds those five packages unconditionally; turbo replays them from the restored cache when they were already built. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01DoFgrZuLrgVbaH4Z7Fb3Mu --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cd415e4e96..9ed4568a034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3244,6 +3244,21 @@ jobs: --filter='./ui/examples/*' fi + # ui/tsconfig.vitest-setup.json resolves five @object-ui packages through + # their built declarations (its `paths` comment measures the from-source + # route at 484 errors). The step above builds them only when they are in + # its affected scope, and a pull_request whose ui scope is empty builds + # nothing, so the next step failed with TS2882/TS2307. Turbo replays + # them from the cache when the step above or main's cache already built them. + - name: Build the ui packages the vitest setup files import + run: | + pnpm exec turbo run build --concurrency=4 \ + --filter=@object-ui/components \ + --filter=@object-ui/fields \ + --filter=@object-ui/plugin-dashboard \ + --filter=@object-ui/plugin-grid \ + --filter=@object-ui/i18n + - name: Type-check ui repo-root vitest setup files run: pnpm --dir ui run type-check:vitest-setup