react-doctor 0.2.12-dev.e8bc8b9 → 0.2.13-dev.ac14db3
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/dist/cli.js +9 -8
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -6578,6 +6578,12 @@ const shouldSelectAllChoices = (choiceStates) => {
|
|
|
6578
6578
|
return choiceStates.filter((choiceState) => !choiceState.disabled).some((choiceState) => choiceState.selected !== true);
|
|
6579
6579
|
};
|
|
6580
6580
|
//#endregion
|
|
6581
|
+
//#region src/cli/utils/unref-stdin.ts
|
|
6582
|
+
const unrefStdin = () => {
|
|
6583
|
+
if (process.stdin.isTTY) return;
|
|
6584
|
+
process.stdin.unref?.();
|
|
6585
|
+
};
|
|
6586
|
+
//#endregion
|
|
6581
6587
|
//#region src/cli/utils/prompts.ts
|
|
6582
6588
|
const require$1 = createRequire(import.meta.url);
|
|
6583
6589
|
const PROMPTS_MULTISELECT_MODULE_PATH = "prompts/lib/elements/multiselect";
|
|
@@ -6620,7 +6626,7 @@ const patchMultiselectSubmit = () => {
|
|
|
6620
6626
|
const prompts = (questions, options = {}) => {
|
|
6621
6627
|
patchMultiselectToggleAll();
|
|
6622
6628
|
patchMultiselectSubmit();
|
|
6623
|
-
return basePrompts(questions, { onCancel: options.onCancel ?? onCancel });
|
|
6629
|
+
return basePrompts(questions, { onCancel: options.onCancel ?? onCancel }).finally(unrefStdin);
|
|
6624
6630
|
};
|
|
6625
6631
|
//#endregion
|
|
6626
6632
|
//#region src/cli/utils/resolve-oxlint-node.ts
|
|
@@ -6674,7 +6680,7 @@ const resolveOxlintNodeEffect = (isLintEnabled, isQuiet) => Effect.gen(function*
|
|
|
6674
6680
|
const resolveOxlintNode = (isLintEnabled, isQuiet) => Effect.runPromise(resolveOxlintNodeEffect(isLintEnabled, isQuiet).pipe(Effect.provide(NodeResolver.layerNode)));
|
|
6675
6681
|
//#endregion
|
|
6676
6682
|
//#region src/cli/utils/version.ts
|
|
6677
|
-
const VERSION = "0.2.
|
|
6683
|
+
const VERSION = "0.2.13-dev.ac14db3";
|
|
6678
6684
|
//#endregion
|
|
6679
6685
|
//#region src/inspect.ts
|
|
6680
6686
|
const silentConsole = makeNoopConsole();
|
|
@@ -7467,7 +7473,7 @@ const defaultWait = (milliseconds) => new Promise((resolve) => {
|
|
|
7467
7473
|
setTimeout(resolve, milliseconds);
|
|
7468
7474
|
});
|
|
7469
7475
|
const defaultSelect = async (message) => {
|
|
7470
|
-
const { setupReactDoctorChoice } = await
|
|
7476
|
+
const { setupReactDoctorChoice } = await prompts({
|
|
7471
7477
|
type: "select",
|
|
7472
7478
|
name: "setupReactDoctorChoice",
|
|
7473
7479
|
message,
|
|
@@ -9196,11 +9202,6 @@ const stripUnknownCliFlags = (argv) => {
|
|
|
9196
9202
|
];
|
|
9197
9203
|
};
|
|
9198
9204
|
//#endregion
|
|
9199
|
-
//#region src/cli/utils/unref-stdin.ts
|
|
9200
|
-
const unrefStdin = () => {
|
|
9201
|
-
process.stdin.unref?.();
|
|
9202
|
-
};
|
|
9203
|
-
//#endregion
|
|
9204
9205
|
//#region src/cli/index.ts
|
|
9205
9206
|
process.on("SIGINT", exitGracefully);
|
|
9206
9207
|
process.on("SIGTERM", exitGracefully);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13-dev.ac14db3",
|
|
4
4
|
"description": "Diagnose and fix React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"oxlint": "^1.66.0",
|
|
59
59
|
"prompts": "^2.4.2",
|
|
60
60
|
"typescript": ">=5.0.4 <7",
|
|
61
|
-
"oxlint-plugin-react-doctor": "0.2.
|
|
61
|
+
"oxlint-plugin-react-doctor": "0.2.13-dev.ac14db3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/prompts": "^2.4.9",
|
|
65
65
|
"commander": "^14.0.3",
|
|
66
66
|
"ora": "^9.4.0",
|
|
67
|
-
"@react-doctor/api": "0.2.
|
|
68
|
-
"@react-doctor/core": "0.2.
|
|
67
|
+
"@react-doctor/api": "0.2.13",
|
|
68
|
+
"@react-doctor/core": "0.2.13"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": "^20.19.0 || >=22.12.0"
|