Skip to content

fix(scripts): launch dev tools through current Bun executable#192

Merged
DavidBabinec merged 1 commit into
mainfrom
fix/windows-dev-launchers
Jul 6, 2026
Merged

fix(scripts): launch dev tools through current Bun executable#192
DavidBabinec merged 1 commit into
mainfrom
fix/windows-dev-launchers

Conversation

@DavidBabinec

Copy link
Copy Markdown
Contributor

What changed

  • Added a small Bun command helper that uses process.execPath for child Bun invocations.
  • Updated bun run dev, E2E dev, and local start launchers to run CMS/Vite/build commands through that helper.
  • Added a regression test that blocks direct vite/bun child spawns in these launchers.

Why

Windows users with Bun installed via npm can hit uv_spawn ENOENT when a script spawns package-bin shims like vite directly, or spawns bun by name. Routing through the current Bun executable and bun run vite avoids relying on Windows .cmd shim resolution.

Impact

bun run dev should no longer fail after the CMS starts with uv_spawn 'vite' on Windows. The same process-launch pattern is also fixed for scripts/e2e-dev.ts and scripts/start.ts.

Verification

  • bun test src/__tests__/devWorkflow.test.ts
  • bun run lint
  • bun run build
  • bun test

@DavidBabinec
DavidBabinec marked this pull request as ready for review July 6, 2026 14:30
@DavidBabinec
DavidBabinec merged commit 1207372 into main Jul 6, 2026
6 checks passed
@DavidBabinec
DavidBabinec deleted the fix/windows-dev-launchers branch July 6, 2026 14:30
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