Skip to content

Commit aeadd97

Browse files
committed
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DoFgrZuLrgVbaH4Z7Fb3Mu
1 parent e167956 commit aeadd97

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,6 +3244,21 @@ jobs:
32443244
--filter='./ui/examples/*'
32453245
fi
32463246
3247+
# ui/tsconfig.vitest-setup.json resolves five @object-ui packages through
3248+
# their built declarations (its `paths` comment measures the from-source
3249+
# route at 484 errors). The step above builds them only when they are in
3250+
# its affected scope, and a pull_request whose ui scope is empty builds
3251+
# nothing, so the next step failed with TS2882/TS2307. Turbo replays
3252+
# them from the cache when the step above or main's cache already built them.
3253+
- name: Build the ui packages the vitest setup files import
3254+
run: |
3255+
pnpm exec turbo run build --concurrency=4 \
3256+
--filter=@object-ui/components \
3257+
--filter=@object-ui/fields \
3258+
--filter=@object-ui/plugin-dashboard \
3259+
--filter=@object-ui/plugin-grid \
3260+
--filter=@object-ui/i18n
3261+
32473262
- name: Type-check ui repo-root vitest setup files
32483263
run: pnpm --dir ui run type-check:vitest-setup
32493264

0 commit comments

Comments
 (0)