From 92d369060cd300ff801892ebd9a25565fd82b88a Mon Sep 17 00:00:00 2001 From: CJ Rivas Date: Tue, 22 Sep 2026 23:31:51 -0400 Subject: [PATCH] TKW: fix scripts broken by bun 1.4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `--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 `&&`. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 80d09f50..a747b52c 100644 --- a/package.json +++ b/package.json @@ -10,23 +10,23 @@ "dev": "next dev --port 46642", "build": "next build", "start": "next start", - "lint": "bun run --sequential lint:ts lint:scss lint:actions", + "lint": "bun run lint:ts && bun run lint:scss && bun run lint:actions", "lint:ts": "oxlint", "lint:ts:fix": "oxlint --fix", "lint:scss": "gale \"{app,components,styles}/**/*.scss\"", "lint:scss:fix": "gale --fix \"{app,components,styles}/**/*.scss\"", "lint:actions": "github-actionlint", "typecheck": "tsgo --noEmit", - "test": "bun test --parallel --dots", - "test:watch": "bun test --parallel --dots --watch", - "coverage": "bun test --parallel --dots --coverage", + "test": "bun test --dots --parallel", + "test:watch": "bun test --dots --watch --parallel", + "coverage": "bun test --dots --coverage --parallel", "format": "oxfmt", "format:check": "oxfmt --check", "spellcheck": "typos", "lint:staged": "lint-staged", "prepare": "husky", "clean": "rm -rf .next", - "system-check": "bun run --sequential clean typecheck lint spellcheck test build" + "system-check": "bun run clean && bun run typecheck && bun run lint && bun run spellcheck && bun run test && bun run build" }, "lint-staged": { "*.{js,jsx,ts,tsx,mjs,cjs}": [