react-doctor 0.2.18-dev.f375dbb → 0.3.0-dev.915745e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/bin/react-doctor.js +9 -1
- package/dist/cli.js +1187 -468
- package/dist/index.d.ts +44 -1
- package/dist/index.js +334 -210
- package/dist/lsp.js +10741 -0
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -37,7 +37,19 @@ npx react-doctor@latest install
|
|
|
37
37
|
|
|
38
38
|
Works with Claude Code, Cursor, Codex, OpenCode, and many more.
|
|
39
39
|
|
|
40
|
-
### 3.
|
|
40
|
+
### 3. Use in your editor (LSP)
|
|
41
|
+
|
|
42
|
+
React Doctor ships an experimental language server, so diagnostics show up live as you type — underlined inline, with rich hovers and quick fixes — in VS Code, Cursor, Zed, Neovim, Sublime, Emacs, Helix, or any LSP client. The universal launch command is:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
react-doctor experimental-lsp --stdio
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> The editor language server is experimental — its protocol, caching, and diagnostics may change between releases, hence the `experimental-` prefix.
|
|
49
|
+
|
|
50
|
+
Companion extensions for VS Code/Cursor and Zed live under `packages/`; any other LSP client can run the command above directly over stdio.
|
|
51
|
+
|
|
52
|
+
### 4. Run in CI (GitHub Actions) for your team
|
|
41
53
|
|
|
42
54
|
[](https://github.com/marketplace/actions/react-doctor)
|
|
43
55
|
|
package/bin/react-doctor.js
CHANGED
|
@@ -10,4 +10,12 @@ if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// Fast-path the (experimental) language server so it runs without the CLI's
|
|
14
|
+
// commander / prompts / ora layer, which would touch process.stdin before the
|
|
15
|
+
// LSP connection attaches and break the stdio transport.
|
|
16
|
+
if (process.argv[2] === "experimental-lsp") {
|
|
17
|
+
const { startLanguageServer } = await import("../dist/lsp.js");
|
|
18
|
+
startLanguageServer();
|
|
19
|
+
} else {
|
|
20
|
+
await import("../dist/cli.js");
|
|
21
|
+
}
|