Skip to content

TKW: fix scripts broken by bun 1.4.2 - #95

Open
codebend3r wants to merge 1 commit into
mainfrom
bun-run-sequential-fix
Open

codebend3r wants to merge 1 commit into
mainfrom
bun-run-sequential-fix

Conversation

@codebend3r

Copy link
Copy Markdown
Owner

Upgraded the local bun toolchain from 1.3.13 to 1.4.2 (packageManager and @types/bun were already pinned at 1.4.2), wiped node_modules, and reinstalled. Two scripts broke under the new bun and are fixed here.

bun test hung forever

  • --parallel now takes an optional value, so bun test --parallel --dots swallowed --dots as that value.
  • That silently disabled parallel mode and the --isolate it implies.
  • Without isolation the per-file mock.restore() in the next/navigation suites leaks into the next file — SearchCombobox then throws Export named 'useRouter' not found, and the runner spins at 100% CPU indefinitely.
  • --parallel is now last in test, test:watch, and coverage.

bun run --sequential ran only the first script

  • Nested inside another script, bun run --sequential a b c no longer parses the trailing script names — it passes them as arguments to the first one.
  • bun run system-check therefore executed rm -rf .next typecheck lint spellcheck test build and deleted test/.
  • lint and system-check now chain with &&, which is sequential by definition and fails fast.

Verification

bun run system-check passes end to end — clean, typecheck, lint (ts/scss/actions), spellcheck, 921 tests across 84 files, build.

- `--parallel` now takes an optional value, so `bun test --parallel --dots`
  swallowed `--dots` as that value — disabling parallel mode and the
  `--isolate` it implies. Without isolation the per-file `mock.restore()` in
  the `next/navigation` suites leaks across files and `bun test` spins
  forever. `--parallel` moved last in `test`, `test:watch`, and `coverage`.
- Nested `bun run --sequential a b c` no longer parses the trailing script
  names and passes them as arguments to the first script, so
  `bun run system-check` ran `rm -rf .next typecheck lint spellcheck test
  build` and deleted `test/`. `lint` and `system-check` now chain with `&&`.
@netlify

netlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for theknownworld ready!

Name Link
🔨 Latest commit 92d3690
🔍 Latest deploy log https://app.netlify.com/projects/theknownworld/deploys/6ab34851802dae0008a6bdef
😎 Deploy Preview https://deploy-preview-95--theknownworld.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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