GeezerVison is showing github.com — Migrate build and test pipeline to vite-plus by juliusmarminge · Pull Request #1616 · pingdotgg/t3code
Conversation
juliusmarminge
commented
Mar 31, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Replace the legacy
tsdown/vitest workflow with vite-plus across desktop, server, web, and shared packages.
- Consolidate build and test configs around root-level Vite-based task runners, including new
vite.config.ts files and removed Turbo/tsdown config.
- Update the server CLI and CI cache setup to match the new workspace build flow and dependency catalog handling.
- Refresh several type signatures and runtime checks that surfaced during the migration.
Testing
- Install
vite-plus: https://viteplus.dev/guide/#install-vp
- Not run locally.
- Expected to pass:
bun fmt
- Expected to pass:
bun lint
- Expected to pass:
bun typecheck
- Expected to pass:
bun run test
Note Medium Risk
Build/test infrastructure is replaced across desktop/server/web, so failures may surface in CI or local workflows despite mostly mechanical changes. Runtime logic changes are minor, but the new bundling/aliasing config affects how packages resolve and ship.
Overview
Switches the workspace build + test toolchain to vite-plus. Desktop/server bundling moves from tsdown to vp pack with new vite.config.ts files, Turbo app configs are removed, and package scripts are updated to use vp for build/dev/test.
Adjusts repo plumbing to match the new flow. CI caching drops .turbo and only caches Bun, docs update the meaning of bun run build, and TypeScript configs now include source-package paths (and exclude their tests) to support the new bundling/TS resolution.
Includes small correctness/type cleanups uncovered by the migration. Many Effect.Effect<..., never>/fiber signatures are loosened, workspace scanning ignores .vite instead of .turbo, and a few UI/test assertions and casts are simplified for stricter typing and more reliable browser tests.
Written by Cursor Bugbot for commit 881c649. This will update automatically on new commits. Configure here.
Note
Migrate build, test, and dev pipeline from vitest/turbo/tsdown to vite-plus
- Replaces
vitest imports with vite-plus/test across all test files in apps/, packages/, and scripts/.
- Replaces
turbo with vp (vite-plus CLI) for monorepo task orchestration in root and per-package package.json scripts (dev, build, test, lint, fmt).
- Replaces
tsdown with vp pack for bundling desktop and shared packages; adds vite.config.ts files for apps/desktop, apps/server, apps/web, packages/shared, and packages/contracts.
- Adds path alias resolution for
@t3tools/* workspace packages to source files across all vite configs and tsconfig.base.json, removing the need for pre-built outputs during development.
- Workspace directory scanning in
WorkspaceEntries.ts now ignores .vite instead of .turbo.
- Removes turbo cache from CI; simplifies cache key to
bun.lock only.
- Behavioral Change:
Effect.Effect and related types drop explicit never error/environment type parameters throughout the codebase, aligning with updated Effect library conventions.
Macroscope summarized 881c649. (Automatic summaries will resume when PR exits draft mode or review begins).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Replace tsdown and Turbo build wiring with vite-plus tasks
- Switch server, desktop, and web tests to vite-plus test imports
- Tighten related Effect types and update CI/docs for the new workflow
coderabbitai
Bot
commented
Mar 31, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: e4d3d144-bd31-4f9e-bee1-752c489f4ed5
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
t3code/viteplus-migrate
Comment @coderabbitai help to get the list of available commands and usage tips.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Workspace scan no longer ignores Turbo cache
- Restored
.turbo to IGNORED_DIRECTORY_NAMES alongside the newly added .vite, since the migration accidentally replaced it instead of adding .vite as an additional entry.

Or push these changes by commenting:
Preview (2d90d516bd)
diff --git a/apps/server/src/workspace/Layers/WorkspaceEntries.ts b/apps/server/src/workspace/Layers/WorkspaceEntries.ts
--- a/apps/server/src/workspace/Layers/WorkspaceEntries.ts
+++ b/apps/server/src/workspace/Layers/WorkspaceEntries.ts
@@ -21,6 +21,7 @@
".convex",
"node_modules",
".next",
+ ".turbo",
".vite",
"dist",
"build",
You can send follow-ups to this agent here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
"node_modules",
|
|
|
".next",
|
|
|
".turbo",
|
|
|
".vite",
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workspace scan no longer ignores Turbo cache
Medium Severity
Replacing ".turbo" with ".vite" in IGNORED_DIRECTORY_NAMES makes WorkspaceEntries recurse into old Turbo caches. When Git filtering is unavailable or the folder is outside a Git worktree, .turbo contents can flood indexing, hit WORKSPACE_INDEX_MAX_ENTRIES, and hide real project files from search results.
Additional Locations (1)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Remove tsconfig path aliases and Vite aliases
- Point contracts/shared packages at source entrypoints
- Update dev runner imports to use package specifiers
- switch workspace checks and tests to `vp`
- fold Vitest browser config into `vite.config.ts`
- add `electron-builder` for desktop packaging
|
This change will fix bug #1968 as it removes tsdown.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This change will fix bug #1968 as it removes tsdown.
it doesn't really remove it. tsdown is used by vp pack
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This change will fix bug #1968 as it removes tsdown.
it doesn't really remove it. tsdown is used by vp pack
Sorry I didn't realize. But this change will still fix #1968 because vp pack uses tsdown 0.21.7 (according to the bun.lock). That version does not hang for bun dev:desktop on Windows.
Tested with this PR:
irm https://vite.plus/ps1 | iex # re-open terminal so vp in PATH
git fetch upstream pull/1616/merge:pull/1616
git switch pull/1616
vp install
vp run dev:desktop
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XXL
1,000+ changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|