react-doctor 0.9.12 → 0.9.13-dev.fd23edc
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 +34 -1
- package/bin/react-doctor.js +1 -9
- package/dist/active-run-trace-dlIZeEvb.js +18 -0
- package/dist/active-scan-abort-registry-DwG6tSPy.js +28 -0
- package/dist/{build-section-divider-BsQvH-7I.js → build-section-divider-CUtO-gXD.js} +10 -25
- package/dist/{ci-B4x4RjKD.js → ci-DjilJaw4.js} +13 -12
- package/dist/cli.js +121 -41
- package/dist/{design-A48PNCf_.js → design-CXLKbARh.js} +4 -4
- package/dist/{devtools-DPRVRu3S.js → devtools-CC2PAZ85.js} +4 -4
- package/dist/{exit-gracefully-Bk531kS-.js → exit-gracefully-DTLgxZZ5.js} +15 -9
- package/dist/get-east-asian-width-Bv2TD3Xj.js +444 -0
- package/dist/{report-error-Pb2uO8EG.js → handle-error-BqaqFvmc.js} +18 -68
- package/dist/index.d.ts +53 -42
- package/dist/index.js +55119 -54689
- package/dist/{inspect-CwH84aSA.js → inspect-BIfnzKGq.js} +44 -33
- package/dist/{install-doctor-script-DLayXS7q.js → install-doctor-script-B1U08lUD.js} +7 -449
- package/dist/{install-github-workflow-Goz-KFqb.js → install-github-workflow-CkOl0wCn.js} +10 -6
- package/dist/{install-sFN_w425.js → install-nhJ65X-y.js} +9 -8
- package/dist/{install-react-doctor-Bq7dfEBI.js → install-react-doctor-Dm35Egex.js} +47 -45
- package/dist/{run-scan-app-DXBMW54J.js → jsx-runtime-C1t3eR6p.js} +281 -2759
- package/dist/path-format-DnHpmJwG.js +9 -0
- package/dist/{print-branded-header-D_J8Qdsj.js → print-branded-header-qOJiGkuW.js} +4 -4
- package/dist/project-analysis-worker.d.ts +1 -0
- package/dist/project-analysis-worker.js +51901 -0
- package/dist/prompt-runtime-scan-url-m88LMtMP.js +240 -0
- package/dist/{read-object-file-Hk79zI91.js → read-object-file-Cv41FpZo.js} +4 -4
- package/dist/{record-metric-CsQXJewH.js → record-metric-u8youmM2.js} +3257 -6019
- package/dist/report-error-CkFgxJTQ.js +64 -0
- package/dist/{report-workflow-result-6n_wSqzA.js → report-workflow-result-Wh1SQuOu.js} +5 -5
- package/dist/{resolve-scope-DP6rYlNO.js → resolve-scope-CHCpJtks.js} +8 -10
- package/dist/{rules-BnIZ4Fq_.js → rules-C30QFptP.js} +6 -6
- package/dist/run-scan-app-yTBDucJ3.js +2511 -0
- package/dist/runtime-scan/browser-probe.iife.js +855 -0
- package/dist/runtime-scan-VH25Yf8H.js +770 -0
- package/dist/sanitize-runtime-url-crVHbQlW.js +76 -0
- package/dist/scan-CNSRWEtJ.js +47 -0
- package/dist/semver-DFtnEmN-.js +3219 -0
- package/dist/{should-fail-scan-gate-DzZuTxim.js → should-fail-scan-gate-Cw6KeoRT.js} +160 -184
- package/dist/{should-skip-prompts-D1GWG2qN.js → should-skip-prompts-B5zkkkKR.js} +4 -4
- package/dist/should-use-tui-S9255AG_.js +25 -0
- package/dist/skills/improve-threejs/SKILL.md +102 -0
- package/dist/skills/performance/SKILL.md +113 -0
- package/dist/skills/react-doctor/SKILL.md +6 -0
- package/dist/{unref-stdin-0a_0uwC6.js → telemetry-runtime-B2rpGWMl.js} +57 -33
- package/dist/unref-stdin-SK3WfwxS.js +12 -0
- package/dist/{version-Bo5QDp7F.js → version-KQbGQSGN.js} +4 -4
- package/dist/{why-BFYbtnm8.js → why-B-l2qTCV.js} +4 -4
- package/dist/with-run-span-Dk1M8cnH.js +110 -0
- package/package.json +9 -10
- package/dist/chunk-q7NCDQ7-.js +0 -28
- package/dist/lsp.js +0 -81145
- package/dist/scan-CnnXz78m.js +0 -53
package/dist/scan-CnnXz78m.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="91acd580-1e9a-5e9b-8565-da5dc9fc161b")}catch(e){}}();
|
|
3
|
-
import { Mn as resolveScanTarget, t as recordCount, w as METRIC, z as isNonInteractiveEnvironment } from "./record-metric-CsQXJewH.js";
|
|
4
|
-
import { i as warnDeprecatedDiff } from "./resolve-scope-DP6rYlNO.js";
|
|
5
|
-
import { _ as resolveCliInspectOptions, i as validateModeFlags } from "./should-fail-scan-gate-DzZuTxim.js";
|
|
6
|
-
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-CwH84aSA.js";
|
|
7
|
-
import path from "node:path";
|
|
8
|
-
//#region src/cli/utils/should-use-tui.ts
|
|
9
|
-
const shouldUseTui = (input) => {
|
|
10
|
-
if (input.isNonInteractiveEnvironment || !input.stdinIsTty || !input.stdoutIsTty || !input.supportsRawMode || input.nodeMajorVersion < 22 || input.terminalName === "dumb") return false;
|
|
11
|
-
const flags = input.flags;
|
|
12
|
-
return !(flags.score === true || flags.json === true || flags.jsonCompact === true || flags.jsonOut !== void 0 || flags.staged === true || flags.changedFilesFrom !== void 0);
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/cli/commands/scan.ts
|
|
16
|
-
const runScanCommand = async (input) => {
|
|
17
|
-
if (input.flags.cache === false) process.env.REACT_DOCTOR_NO_CACHE = "1";
|
|
18
|
-
const nodeMajorVersion = Number(process.versions.node.split(".")[0]);
|
|
19
|
-
if (!shouldUseTui({
|
|
20
|
-
flags: input.flags,
|
|
21
|
-
isNonInteractiveEnvironment: isNonInteractiveEnvironment(),
|
|
22
|
-
nodeMajorVersion,
|
|
23
|
-
stdinIsTty: process.stdin.isTTY === true,
|
|
24
|
-
stdoutIsTty: process.stdout.isTTY === true,
|
|
25
|
-
supportsRawMode: typeof process.stdin.setRawMode === "function",
|
|
26
|
-
terminalName: process.env.TERM
|
|
27
|
-
})) {
|
|
28
|
-
await inspectAction(input.directory, input.flags, input.invocationCommand);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
await runProjectMigrations(path.resolve(input.directory));
|
|
32
|
-
const scanTarget = await resolveScanTarget(input.directory, { allowAmbiguous: true });
|
|
33
|
-
validateModeFlags(input.flags);
|
|
34
|
-
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
35
|
-
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
36
|
-
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
37
|
-
const { runScanApp } = await import("./run-scan-app-DXBMW54J.js");
|
|
38
|
-
const { shouldFail } = await runScanApp({
|
|
39
|
-
directory: input.directory,
|
|
40
|
-
scanTarget,
|
|
41
|
-
options: resolveCliInspectOptions(input.flags, null),
|
|
42
|
-
projectFlag: input.flags.project,
|
|
43
|
-
skipPrompts: input.flags.yes ?? false,
|
|
44
|
-
blocking: input.flags.blocking ?? input.flags.failOn,
|
|
45
|
-
flags: input.flags
|
|
46
|
-
});
|
|
47
|
-
if (shouldFail) process.exitCode = 1;
|
|
48
|
-
};
|
|
49
|
-
//#endregion
|
|
50
|
-
export { runScanCommand };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=scan-CnnXz78m.js.map
|
|
53
|
-
//# debugId=91acd580-1e9a-5e9b-8565-da5dc9fc161b
|