react-doctor 0.9.12 → 0.9.13

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.
Files changed (52) hide show
  1. package/README.md +34 -1
  2. package/bin/react-doctor.js +1 -9
  3. package/dist/active-run-trace-dlIZeEvb.js +18 -0
  4. package/dist/active-scan-abort-registry-DwG6tSPy.js +28 -0
  5. package/dist/{build-section-divider-BsQvH-7I.js → build-section-divider-DELfSn3p.js} +10 -25
  6. package/dist/{ci-B4x4RjKD.js → ci-DqnZCnrL.js} +13 -12
  7. package/dist/cli.js +121 -41
  8. package/dist/{design-A48PNCf_.js → design-DqUidb1f.js} +4 -4
  9. package/dist/{devtools-DPRVRu3S.js → devtools-CC2PAZ85.js} +4 -4
  10. package/dist/{exit-gracefully-Bk531kS-.js → exit-gracefully-CrpeIbra.js} +15 -9
  11. package/dist/get-east-asian-width-Bv2TD3Xj.js +444 -0
  12. package/dist/{report-error-Pb2uO8EG.js → handle-error-BEYYtsCl.js} +18 -68
  13. package/dist/index.d.ts +53 -42
  14. package/dist/index.js +55119 -54689
  15. package/dist/{inspect-CwH84aSA.js → inspect-BjMaC5WV.js} +44 -33
  16. package/dist/{install-sFN_w425.js → install-DxLmASQ5.js} +9 -8
  17. package/dist/{install-doctor-script-DLayXS7q.js → install-doctor-script-4EWviJL8.js} +7 -449
  18. package/dist/{install-github-workflow-Goz-KFqb.js → install-github-workflow-BPznUbbo.js} +10 -6
  19. package/dist/{install-react-doctor-Bq7dfEBI.js → install-react-doctor-Baq9hjoF.js} +47 -45
  20. package/dist/{run-scan-app-DXBMW54J.js → jsx-runtime-DvynQ_wu.js} +281 -2759
  21. package/dist/path-format-DnHpmJwG.js +9 -0
  22. package/dist/{print-branded-header-D_J8Qdsj.js → print-branded-header-DSB6i3kk.js} +4 -4
  23. package/dist/project-analysis-worker.d.ts +1 -0
  24. package/dist/project-analysis-worker.js +51901 -0
  25. package/dist/prompt-runtime-scan-url-BibDt9O1.js +240 -0
  26. package/dist/{read-object-file-Hk79zI91.js → read-object-file-DfWpkle4.js} +4 -4
  27. package/dist/{record-metric-CsQXJewH.js → record-metric-Cckscwg_.js} +3257 -6019
  28. package/dist/report-error-C1YnoRNl.js +64 -0
  29. package/dist/{report-workflow-result-6n_wSqzA.js → report-workflow-result-IdGRoBFN.js} +5 -5
  30. package/dist/{resolve-scope-DP6rYlNO.js → resolve-scope-Bb6fljxd.js} +8 -10
  31. package/dist/{rules-BnIZ4Fq_.js → rules-BcFekwN4.js} +6 -6
  32. package/dist/run-scan-app-CKHynQx8.js +2511 -0
  33. package/dist/runtime-scan/browser-probe.iife.js +855 -0
  34. package/dist/runtime-scan-7Y_mbqEa.js +770 -0
  35. package/dist/sanitize-runtime-url-DzyBLbi3.js +76 -0
  36. package/dist/scan-DQCwBx6p.js +47 -0
  37. package/dist/semver-DFtnEmN-.js +3219 -0
  38. package/dist/{should-fail-scan-gate-DzZuTxim.js → should-fail-scan-gate-BYPsKIde.js} +160 -184
  39. package/dist/{should-skip-prompts-D1GWG2qN.js → should-skip-prompts-CKkbB3rC.js} +4 -4
  40. package/dist/should-use-tui-Crfoao-l.js +25 -0
  41. package/dist/skills/improve-threejs/SKILL.md +102 -0
  42. package/dist/skills/performance/SKILL.md +113 -0
  43. package/dist/skills/react-doctor/SKILL.md +6 -0
  44. package/dist/{unref-stdin-0a_0uwC6.js → telemetry-runtime-DKJyjz9o.js} +57 -33
  45. package/dist/unref-stdin-SK3WfwxS.js +12 -0
  46. package/dist/{version-Bo5QDp7F.js → version-CMkUAGmw.js} +4 -4
  47. package/dist/{why-BFYbtnm8.js → why-By3I6_Ex.js} +4 -4
  48. package/dist/with-run-span-DxFGyW7k.js +110 -0
  49. package/package.json +9 -10
  50. package/dist/chunk-q7NCDQ7-.js +0 -28
  51. package/dist/lsp.js +0 -81145
  52. package/dist/scan-CnnXz78m.js +0 -53
@@ -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