react-doctor 0.2.12-dev.e8bc8b9 → 0.2.13-dev.adbec28
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 +8 -8
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -6578,6 +6578,11 @@ 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
|
+
process.stdin.unref?.();
|
|
6584
|
+
};
|
|
6585
|
+
//#endregion
|
|
6581
6586
|
//#region src/cli/utils/prompts.ts
|
|
6582
6587
|
const require$1 = createRequire(import.meta.url);
|
|
6583
6588
|
const PROMPTS_MULTISELECT_MODULE_PATH = "prompts/lib/elements/multiselect";
|
|
@@ -6620,7 +6625,7 @@ const patchMultiselectSubmit = () => {
|
|
|
6620
6625
|
const prompts = (questions, options = {}) => {
|
|
6621
6626
|
patchMultiselectToggleAll();
|
|
6622
6627
|
patchMultiselectSubmit();
|
|
6623
|
-
return basePrompts(questions, { onCancel: options.onCancel ?? onCancel });
|
|
6628
|
+
return basePrompts(questions, { onCancel: options.onCancel ?? onCancel }).finally(unrefStdin);
|
|
6624
6629
|
};
|
|
6625
6630
|
//#endregion
|
|
6626
6631
|
//#region src/cli/utils/resolve-oxlint-node.ts
|
|
@@ -6674,7 +6679,7 @@ const resolveOxlintNodeEffect = (isLintEnabled, isQuiet) => Effect.gen(function*
|
|
|
6674
6679
|
const resolveOxlintNode = (isLintEnabled, isQuiet) => Effect.runPromise(resolveOxlintNodeEffect(isLintEnabled, isQuiet).pipe(Effect.provide(NodeResolver.layerNode)));
|
|
6675
6680
|
//#endregion
|
|
6676
6681
|
//#region src/cli/utils/version.ts
|
|
6677
|
-
const VERSION = "0.2.
|
|
6682
|
+
const VERSION = "0.2.13-dev.adbec28";
|
|
6678
6683
|
//#endregion
|
|
6679
6684
|
//#region src/inspect.ts
|
|
6680
6685
|
const silentConsole = makeNoopConsole();
|
|
@@ -7467,7 +7472,7 @@ const defaultWait = (milliseconds) => new Promise((resolve) => {
|
|
|
7467
7472
|
setTimeout(resolve, milliseconds);
|
|
7468
7473
|
});
|
|
7469
7474
|
const defaultSelect = async (message) => {
|
|
7470
|
-
const { setupReactDoctorChoice } = await
|
|
7475
|
+
const { setupReactDoctorChoice } = await prompts({
|
|
7471
7476
|
type: "select",
|
|
7472
7477
|
name: "setupReactDoctorChoice",
|
|
7473
7478
|
message,
|
|
@@ -9196,11 +9201,6 @@ const stripUnknownCliFlags = (argv) => {
|
|
|
9196
9201
|
];
|
|
9197
9202
|
};
|
|
9198
9203
|
//#endregion
|
|
9199
|
-
//#region src/cli/utils/unref-stdin.ts
|
|
9200
|
-
const unrefStdin = () => {
|
|
9201
|
-
process.stdin.unref?.();
|
|
9202
|
-
};
|
|
9203
|
-
//#endregion
|
|
9204
9204
|
//#region src/cli/index.ts
|
|
9205
9205
|
process.on("SIGINT", exitGracefully);
|
|
9206
9206
|
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.adbec28",
|
|
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.adbec28"
|
|
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"
|