Skip to content

fix(web): tool package registry list no longer relies on import.meta.glob so bun test runs (CL-8436) - #869

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8436-ci-unit
Sep 18, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8436-ci-unit

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • apps/web/src/tools/registry-publish.ts called Vite-only import.meta.glob at module scope, so any bun test that transitively imported it (the shell/login-routing suite) crashed with TypeError: undefined is not a function.
  • Moved both import.meta.glob calls inside buildToolPackageTrees() so they only run when the tree-building path is actually invoked; a bare import (as bun test does transitively) no longer touches the Vite-only API. Vite still statically analyzes the calls wherever they appear in the module, so production behavior is unchanged.
  • No other main test was red; bun run test is fully green.

Test plan

  • bun install
  • bun run test (943 pass, 0 fail)
  • bun run typecheck
  • bun run lint (only pre-existing sidecar preserve-caught-error warnings)
  • bun run fmt

…glob so bun test runs (CL-8436)

Vite-only import.meta.glob ran at module load time, so any bun test
that transitively imported registry-publish.ts (e.g. login-routing)
crashed with TypeError before running.
@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8436

@TheGreatAxios
TheGreatAxios merged commit 3d8072a into main Sep 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant