react-doctor 0.2.14-dev.52ecf12 → 0.2.14-dev.5dff3b5
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.
|
@@ -6434,11 +6434,14 @@ const spawnLintBatches = async (input) => {
|
|
|
6434
6434
|
onFileProgress(scannedFileCount + batchFileIndex, totalFileCount);
|
|
6435
6435
|
}
|
|
6436
6436
|
}, 50) : null;
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6437
|
+
try {
|
|
6438
|
+
const batchDiagnostics = await spawnLintBatch(batch);
|
|
6439
|
+
allDiagnostics.push(...batchDiagnostics);
|
|
6440
|
+
scannedFileCount += batch.length;
|
|
6441
|
+
onFileProgress?.(scannedFileCount, totalFileCount);
|
|
6442
|
+
} finally {
|
|
6443
|
+
if (progressInterval !== null) clearInterval(progressInterval);
|
|
6444
|
+
}
|
|
6442
6445
|
}
|
|
6443
6446
|
if (droppedFiles.length > 0 && onPartialFailure) {
|
|
6444
6447
|
const previewFiles = droppedFiles.slice(0, 3).join(", ");
|
|
@@ -7561,4 +7564,4 @@ const cliLogger = {
|
|
|
7561
7564
|
//#endregion
|
|
7562
7565
|
export { isMonorepoRoot as A, filterDiagnosticsForSurface as C, getDiffInfo as D, formatReactDoctorError as E, restoreLegacyThrow as F, runInspect as I, toRelativePath as L, layerOtlp as M, listWorkspacePackages as N, groupBy as O, resolveScanTarget as P, discoverReactSubprojects as S, formatErrorChain as T, Score as _, DeadCode as a, buildJsonReportError as b, LintPartialFailures as c, OXLINT_NODE_REQUIREMENT as d, Progress as f, SKILL_NAME as g, SHARE_BASE_URL as h, Config as i, isReactDoctorError as j, highlighter as k, Linter as l, Reporter as m, cli_logger_exports as n, Files as o, Project as p, CANONICAL_GITHUB_URL as r, Git as s, cliLogger as t, NodeResolver as u, StagedFiles as v, filterSourceFiles as w, buildRulePromptUrl as x, buildJsonReport as y };
|
|
7563
7566
|
|
|
7564
|
-
//# sourceMappingURL=cli-logger-
|
|
7567
|
+
//# sourceMappingURL=cli-logger-BGXguXLj.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-uZX_iqCz.js";
|
|
2
|
-
import { A as isMonorepoRoot, C as filterDiagnosticsForSurface, D as getDiffInfo, E as formatReactDoctorError, F as restoreLegacyThrow, I as runInspect, L as toRelativePath, M as layerOtlp, N as listWorkspacePackages, O as groupBy, P as resolveScanTarget, S as discoverReactSubprojects, T as formatErrorChain, _ as Score, a as DeadCode, b as buildJsonReportError, c as LintPartialFailures, d as OXLINT_NODE_REQUIREMENT, f as Progress, g as SKILL_NAME, h as SHARE_BASE_URL, i as Config, j as isReactDoctorError, k as highlighter, l as Linter, m as Reporter, o as Files, p as Project, r as CANONICAL_GITHUB_URL, s as Git, t as cliLogger, u as NodeResolver, v as StagedFiles, w as filterSourceFiles, x as buildRulePromptUrl, y as buildJsonReport } from "./cli-logger-
|
|
2
|
+
import { A as isMonorepoRoot, C as filterDiagnosticsForSurface, D as getDiffInfo, E as formatReactDoctorError, F as restoreLegacyThrow, I as runInspect, L as toRelativePath, M as layerOtlp, N as listWorkspacePackages, O as groupBy, P as resolveScanTarget, S as discoverReactSubprojects, T as formatErrorChain, _ as Score, a as DeadCode, b as buildJsonReportError, c as LintPartialFailures, d as OXLINT_NODE_REQUIREMENT, f as Progress, g as SKILL_NAME, h as SHARE_BASE_URL, i as Config, j as isReactDoctorError, k as highlighter, l as Linter, m as Reporter, o as Files, p as Project, r as CANONICAL_GITHUB_URL, s as Git, t as cliLogger, u as NodeResolver, v as StagedFiles, w as filterSourceFiles, x as buildRulePromptUrl, y as buildJsonReport } from "./cli-logger-BGXguXLj.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { execFileSync, execSync } from "node:child_process";
|
|
5
5
|
import path, { join } from "node:path";
|
|
@@ -6680,7 +6680,7 @@ const resolveOxlintNodeEffect = (isLintEnabled, isQuiet) => Effect.gen(function*
|
|
|
6680
6680
|
const resolveOxlintNode = (isLintEnabled, isQuiet) => Effect.runPromise(resolveOxlintNodeEffect(isLintEnabled, isQuiet).pipe(Effect.provide(NodeResolver.layerNode)));
|
|
6681
6681
|
//#endregion
|
|
6682
6682
|
//#region src/cli/utils/version.ts
|
|
6683
|
-
const VERSION = "0.2.14-dev.
|
|
6683
|
+
const VERSION = "0.2.14-dev.5dff3b5";
|
|
6684
6684
|
//#endregion
|
|
6685
6685
|
//#region src/inspect.ts
|
|
6686
6686
|
const silentConsole = makeNoopConsole();
|
|
@@ -7501,7 +7501,7 @@ const warnSetupPromptFailure = async (options, error) => {
|
|
|
7501
7501
|
return;
|
|
7502
7502
|
}
|
|
7503
7503
|
try {
|
|
7504
|
-
const { cliLogger } = await import("./cli-logger-
|
|
7504
|
+
const { cliLogger } = await import("./cli-logger-BGXguXLj.js").then((n) => n.n);
|
|
7505
7505
|
cliLogger.warn(message);
|
|
7506
7506
|
} catch {}
|
|
7507
7507
|
};
|
package/dist/index.js
CHANGED
|
@@ -6464,11 +6464,14 @@ const spawnLintBatches = async (input) => {
|
|
|
6464
6464
|
onFileProgress(scannedFileCount + batchFileIndex, totalFileCount);
|
|
6465
6465
|
}
|
|
6466
6466
|
}, 50) : null;
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6467
|
+
try {
|
|
6468
|
+
const batchDiagnostics = await spawnLintBatch(batch);
|
|
6469
|
+
allDiagnostics.push(...batchDiagnostics);
|
|
6470
|
+
scannedFileCount += batch.length;
|
|
6471
|
+
onFileProgress?.(scannedFileCount, totalFileCount);
|
|
6472
|
+
} finally {
|
|
6473
|
+
if (progressInterval !== null) clearInterval(progressInterval);
|
|
6474
|
+
}
|
|
6472
6475
|
}
|
|
6473
6476
|
if (droppedFiles.length > 0 && onPartialFailure) {
|
|
6474
6477
|
const previewFiles = droppedFiles.slice(0, 3).join(", ");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.2.14-dev.
|
|
3
|
+
"version": "0.2.14-dev.5dff3b5",
|
|
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,7 +58,7 @@
|
|
|
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.14-dev.
|
|
61
|
+
"oxlint-plugin-react-doctor": "0.2.14-dev.5dff3b5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/prompts": "^2.4.9",
|