Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/fix-pnpm-vitest-duplicate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"react-doctor": patch
---

fix: widen oxlint version range to `>=1.60.0` to prevent duplicate vitest instances in pnpm monorepos

When `react-doctor` was installed alongside `vite-plus` (which pins `oxlint@=1.63.0`), pnpm created two instances of oxlint with different peer dependency fingerprints. This caused the vitest fork (`@voidzero-dev/vite-plus-test`) to also have two instances, breaking Vitest's internal hook registry and causing "Vitest failed to find the current suite" errors.

By widening the version range from `^1.66.0` to `>=1.60.0`, pnpm can now dedupe the oxlint dependency when the consumer's workspace already provides a compatible version, preventing the cascade of duplicate instances.

The CLI features react-doctor uses (`-c`, `--format json`, `--tsconfig`, `--ignore-path`) are stable across oxlint 1.60+.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"unrs-resolver"
],
"overrides": {
"oxlint": "^1.66.0",
"oxlint": ">=1.60.0",
"oxlint-tsgolint": "^0.23.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"effect": "4.0.0-beta.70",
"eslint-plugin-react-hooks": "^7.1.1",
"jiti": "^2.7.0",
"oxlint": "^1.66.0",
"oxlint": ">=1.60.0",
"oxlint-plugin-react-doctor": "workspace:*",
"picomatch": "^4.0.4",
"typescript": "^6.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-doctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"eslint-plugin-react-hooks": "^7.1.1",
"jiti": "^2.7.0",
"magicast": "^0.5.3",
"oxlint": "^1.66.0",
"oxlint": ">=1.60.0",
"oxlint-plugin-react-doctor": "workspace:*",
"prompts": "^2.4.2",
"typescript": ">=5.0.4 <7",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading