Skip to content

Commit c35f176

Browse files
committed
chore(changeset): console build-identity define stays out of the test projects
Claude-Session: https://claude.ai/code/session_01KpXmBvpnCGgpgx8hNbqsso Co-authored-by: Claude <noreply@anthropic.com>
1 parent 92598a6 commit c35f176

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/console': patch
3+
---
4+
5+
fix(console): the console's build-identity define no longer leaks into the other ui test projects
6+
7+
Clause-②: no (build/test configuration only; no exported type or runtime contract change; the console production build keeps its version stamp)
8+
Metadata-protocol: none
9+
10+
The console's Vite config bakes `import.meta.env.VITE_APP_VERSION` (the build's version, else the git short sha) as a `define`. The console's vitest project merges that config, and vitest moves every `import.meta.env.*` / `process.env.*` define into the main process's `process.env` while it resolves a project's config, so every other ui test project's workers inherited the console's git sha. App-shell's `getConsoleBuild()` then read that sha instead of `null`, and `buildIdentity-12970`'s "reads null" case went red in full ui runs. The console's vitest config now drops those keys from the merged Vite config. `vite build` still bakes the version exactly as before.

0 commit comments

Comments
 (0)