react-doctor 0.9.12 → 0.9.13-dev.1239043

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-C09RcJrc.js} +10 -25
  6. package/dist/{ci-B4x4RjKD.js → ci-CUgNjCr-.js} +13 -12
  7. package/dist/cli.js +121 -41
  8. package/dist/{design-A48PNCf_.js → design-CX2j8ubS.js} +4 -4
  9. package/dist/{devtools-DPRVRu3S.js → devtools-CC2PAZ85.js} +4 -4
  10. package/dist/{exit-gracefully-Bk531kS-.js → exit-gracefully-cGJM2g3O.js} +15 -9
  11. package/dist/get-east-asian-width-Bv2TD3Xj.js +444 -0
  12. package/dist/{report-error-Pb2uO8EG.js → handle-error-BCI-Nv3P.js} +18 -68
  13. package/dist/index.d.ts +53 -42
  14. package/dist/index.js +55146 -54688
  15. package/dist/{inspect-CwH84aSA.js → inspect-Dq5krKWG.js} +47 -34
  16. package/dist/{install-sFN_w425.js → install-C0aiZKgf.js} +9 -8
  17. package/dist/{install-doctor-script-DLayXS7q.js → install-doctor-script-CaTIms0r.js} +7 -449
  18. package/dist/{install-github-workflow-Goz-KFqb.js → install-github-workflow-DjPgXVqg.js} +10 -6
  19. package/dist/{install-react-doctor-Bq7dfEBI.js → install-react-doctor-C-PVDWXv.js} +47 -45
  20. package/dist/{run-scan-app-DXBMW54J.js → jsx-runtime-D_A4d39v.js} +281 -2759
  21. package/dist/path-format-DnHpmJwG.js +9 -0
  22. package/dist/{print-branded-header-D_J8Qdsj.js → print-branded-header-Dz0SwyHQ.js} +4 -4
  23. package/dist/project-analysis-worker.d.ts +1 -0
  24. package/dist/project-analysis-worker.js +51905 -0
  25. package/dist/prompt-runtime-scan-url-BXdY2Opw.js +240 -0
  26. package/dist/{read-object-file-Hk79zI91.js → read-object-file-CmMGK1uu.js} +4 -4
  27. package/dist/{record-metric-CsQXJewH.js → record-metric-B6T_Ej33.js} +3285 -6018
  28. package/dist/report-error-DwL3b99q.js +64 -0
  29. package/dist/{report-workflow-result-6n_wSqzA.js → report-workflow-result-5PueDIAr.js} +5 -5
  30. package/dist/{resolve-scope-DP6rYlNO.js → resolve-scope-CTlLl7e6.js} +8 -10
  31. package/dist/{rules-BnIZ4Fq_.js → rules-DEbHKRag.js} +6 -6
  32. package/dist/run-scan-app-D3huvmXJ.js +2517 -0
  33. package/dist/runtime-scan/browser-probe.iife.js +855 -0
  34. package/dist/runtime-scan-CHFAEYg3.js +770 -0
  35. package/dist/sanitize-runtime-url-Bbq40iIp.js +76 -0
  36. package/dist/scan-C7sCm7wi.js +47 -0
  37. package/dist/semver-DFtnEmN-.js +3219 -0
  38. package/dist/{should-fail-scan-gate-DzZuTxim.js → should-fail-scan-gate-CfG_ppAV.js} +188 -187
  39. package/dist/{should-skip-prompts-D1GWG2qN.js → should-skip-prompts-BuNtAVEs.js} +4 -4
  40. package/dist/should-use-tui-B-lCjXVG.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-BF83aBFL.js} +57 -33
  45. package/dist/unref-stdin-SK3WfwxS.js +12 -0
  46. package/dist/{version-Bo5QDp7F.js → version-C27gr4Qj.js} +4 -4
  47. package/dist/{why-BFYbtnm8.js → why-CYRkZ2VY.js} +4 -4
  48. package/dist/with-run-span-CdsXSJgE.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