react-doctor 0.9.14-dev.499a020 → 0.9.14-dev.95db911
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/{build-section-divider-BsKw6rbA.js → build-section-divider-CCmUn54o.js} +5 -5
- package/dist/{ci-Y7ntr_X7.js → ci-DUCX-HuQ.js} +13 -13
- package/dist/cli.js +28 -27
- package/dist/{constants-CW_854PH.js → constants-CgtYeXfx.js} +6 -6
- package/dist/{design-CZbXwzWh.js → design-Tt-ZFs9m.js} +4 -4
- package/dist/{exit-gracefully-Bq8kCmar.js → exit-gracefully-DEuC4oPi.js} +6 -6
- package/dist/{handle-error-DkZtH4y1.js → handle-error-CskGb6M7.js} +6 -6
- package/dist/index.js +20 -33
- package/dist/{inspect-4R70DaBp.js → inspect-BAkqsrkD.js} +16 -16
- package/dist/{install-doctor-script-k5jxcUWB.js → install-doctor-script-BptmsvYT.js} +5 -5
- package/dist/{install-github-workflow-Dh3nS6ms.js → install-github-workflow-DwPWX3U-.js} +5 -5
- package/dist/{install-DSOkcCn6.js → install-khoLmaoy.js} +10 -10
- package/dist/{install-react-doctor-NmiRJQtp.js → install-react-doctor-NFIptyyZ.js} +9 -9
- package/dist/{is-cache-globally-disabled-CoHiYz2i.js → is-cache-globally-disabled-Bi2D2qVm.js} +4 -4
- package/dist/{jsx-runtime-B1PPqZBs.js → jsx-runtime-B1l_r3LI.js} +6 -6
- package/dist/{print-branded-header-ydu9MCpt.js → print-branded-header-SQtdX9N4.js} +4 -4
- package/dist/{prompt-runtime-scan-url-BEFbrKze.js → prompt-runtime-scan-url-BHm8cZqQ.js} +5 -5
- package/dist/{read-object-file-f9AWbDOo.js → read-object-file-B8V7-6YI.js} +4 -4
- package/dist/{record-metric-BeiisdDK.js → record-metric-Bo4F3DMW.js} +20 -33
- package/dist/{report-error-CwReeGgL.js → report-error-BV4XPBjh.js} +6 -6
- package/dist/{report-workflow-result-CRhHHcHp.js → report-workflow-result-CtUa_tHV.js} +6 -6
- package/dist/{resolve-scope-DsrT6gaf.js → resolve-scope-DoZnZpf1.js} +6 -6
- package/dist/{rules-Bhk46JNb.js → rules-crTvQBaG.js} +7 -7
- package/dist/{run-scan-app-B_r_jHg-.js → run-scan-app-BGmvkh_l.js} +11 -11
- package/dist/{runtime-scan-B6v3G55b.js → runtime-scan-BDoazB45.js} +10 -10
- package/dist/{sanitize-runtime-url-CVRMHksi.js → sanitize-runtime-url-CqM2NQR7.js} +4 -4
- package/dist/{scan-BJsk-x4c.js → scan-exSzcCQu.js} +10 -10
- package/dist/{should-fail-scan-gate-B8cvpr6W.js → should-fail-scan-gate-BoLh1u6a.js} +28 -17
- package/dist/{should-skip-prompts-CupUff2k.js → should-skip-prompts-D-0qxYdX.js} +4 -4
- package/dist/{should-use-tui-t0DIGfJ0.js → should-use-tui-CguuINM4.js} +4 -4
- package/dist/{start-scan-preamble-D0QepYZ_.js → start-scan-preamble-DVB7vlit.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-DfK-XYFO.js → telemetry-runtime-S4WeFLfO.js} +7 -7
- package/dist/{version-DpQFTCI_.js → version-CUSqbhEh.js} +5 -5
- package/dist/{why-DA3u09OY.js → why-DGIbrH_C.js} +4 -4
- package/dist/{with-run-span-DP84SJbD.js → with-run-span-BWbm4aNv.js} +6 -6
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
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]="
|
|
3
|
-
import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-
|
|
4
|
-
import { Ot as highlighter } from "./record-metric-
|
|
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]="ef868766-0662-5ef1-8387-383efca65d33")}catch(e){}}();
|
|
3
|
+
import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-CgtYeXfx.js";
|
|
4
|
+
import { Ot as highlighter } from "./record-metric-Bo4F3DMW.js";
|
|
5
5
|
//#region src/cli/utils/resolve-measure-width.ts
|
|
6
6
|
const resolveClampedWidth = (input) => {
|
|
7
7
|
const terminalColumns = process.stdout.columns;
|
|
@@ -77,5 +77,5 @@ const buildSectionDivider = () => highlighter.dim(`${DIVIDER_INDENT}${"─".repe
|
|
|
77
77
|
//#endregion
|
|
78
78
|
export { buildFooterLinkLines as n, buildSectionDivider as t };
|
|
79
79
|
|
|
80
|
-
//# sourceMappingURL=build-section-divider-
|
|
81
|
-
//# debugId=
|
|
80
|
+
//# sourceMappingURL=build-section-divider-CCmUn54o.js.map
|
|
81
|
+
//# debugId=ef868766-0662-5ef1-8387-383efca65d33
|
|
@@ -1,16 +1,16 @@
|
|
|
1
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]="
|
|
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]="483ffa92-676a-5b85-b20e-10728b0624ec")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-
|
|
5
|
-
import { Ot as highlighter, t as recordCount, yn as runSync } from "./record-metric-
|
|
6
|
-
import { o as isExpectedUserError } from "./telemetry-runtime-
|
|
7
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
8
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
9
|
-
import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
10
|
-
import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-
|
|
11
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-
|
|
12
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
13
|
-
import { t as printBrandedHeader } from "./print-branded-header-
|
|
4
|
+
import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-CgtYeXfx.js";
|
|
5
|
+
import { Ot as highlighter, t as recordCount, yn as runSync } from "./record-metric-Bo4F3DMW.js";
|
|
6
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-S4WeFLfO.js";
|
|
7
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CskGb6M7.js";
|
|
8
|
+
import { t as reportErrorToSentry } from "./report-error-BV4XPBjh.js";
|
|
9
|
+
import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-BptmsvYT.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-DwPWX3U-.js";
|
|
11
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-DoZnZpf1.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-D-0qxYdX.js";
|
|
13
|
+
import { t as printBrandedHeader } from "./print-branded-header-SQtdX9N4.js";
|
|
14
14
|
import * as fs$1 from "node:fs";
|
|
15
15
|
import * as path$1 from "node:path";
|
|
16
16
|
//#region src/cli/utils/ci/ci-provider.ts
|
|
@@ -7499,5 +7499,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
|
|
|
7499
7499
|
//#endregion
|
|
7500
7500
|
export { ciConfigAction, ciInstallAction, ciUpgradeAction };
|
|
7501
7501
|
|
|
7502
|
-
//# sourceMappingURL=ci-
|
|
7503
|
-
//# debugId=
|
|
7502
|
+
//# sourceMappingURL=ci-DUCX-HuQ.js.map
|
|
7503
|
+
//# debugId=483ffa92-676a-5b85-b20e-10728b0624ec
|
package/dist/cli.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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]="
|
|
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]="d3696fb6-15d5-5a85-b708-3f058c610990")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-
|
|
5
|
-
import "./start-scan-preamble-
|
|
6
|
-
import { In as isDirectory, Ot as highlighter, Rn as isFile, S as isDebugFlagEnabled, Yt as setColorEnabled, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, kt as isPathInsideDirectory, y as CliInputError } from "./record-metric-
|
|
7
|
-
import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-
|
|
8
|
-
import { t as exitGracefully } from "./exit-gracefully-
|
|
9
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
4
|
+
import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-CgtYeXfx.js";
|
|
5
|
+
import "./start-scan-preamble-DVB7vlit.js";
|
|
6
|
+
import { In as isDirectory, Ot as highlighter, Rn as isFile, S as isDebugFlagEnabled, Yt as setColorEnabled, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, kt as isPathInsideDirectory, y as CliInputError } from "./record-metric-Bo4F3DMW.js";
|
|
7
|
+
import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-S4WeFLfO.js";
|
|
8
|
+
import { t as exitGracefully } from "./exit-gracefully-DEuC4oPi.js";
|
|
9
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CskGb6M7.js";
|
|
10
10
|
import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
|
|
11
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
11
|
+
import { t as reportErrorToSentry } from "./report-error-BV4XPBjh.js";
|
|
12
12
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
13
13
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
14
14
|
import * as path$1 from "node:path";
|
|
@@ -3360,6 +3360,7 @@ const COMMAND_FLAG_SPECS = new Map([
|
|
|
3360
3360
|
"--no-dead-code",
|
|
3361
3361
|
"--no-score",
|
|
3362
3362
|
"--no-supply-chain",
|
|
3363
|
+
"--score",
|
|
3363
3364
|
"--yes"
|
|
3364
3365
|
]),
|
|
3365
3366
|
longOptionsWithRequiredValues: new Set([
|
|
@@ -3558,7 +3559,7 @@ ${highlighter.dim("Learn more:")}
|
|
|
3558
3559
|
const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
|
|
3559
3560
|
const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), or lines (issues whose source spans touch changed lines)").option("--base <ref>", "base git ref for files/changed/lines scope (auto-detected when omitted)").option("--include-untracked", "with --scope files/changed/lines, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").addOption(new Option("--fail-on <level>", "[deprecated] alias for --blocking <level>").hideHelp()).option("--no-respect-inline-disables", "audit mode: neutralize inline lint suppressions before scanning").option("--warnings", "show warning-severity diagnostics (default)").option("--no-warnings", "hide warning-severity diagnostics (errors only)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderRootHelpEpilog);
|
|
3560
3561
|
program.action(async (positionalPaths = [], flags) => {
|
|
3561
|
-
const { runScanCommand } = await import("./scan-
|
|
3562
|
+
const { runScanCommand } = await import("./scan-exSzcCQu.js");
|
|
3562
3563
|
return runScanCommand({
|
|
3563
3564
|
...resolvePositionalScanInput(positionalPaths),
|
|
3564
3565
|
flags,
|
|
@@ -3566,75 +3567,75 @@ program.action(async (positionalPaths = [], flags) => {
|
|
|
3566
3567
|
});
|
|
3567
3568
|
});
|
|
3568
3569
|
program.command("design [directory]").description("Run only the focused UI design diagnostics").addHelpText("after", renderDesignHelpEpilog).action(async (directory, _options, command) => {
|
|
3569
|
-
const { designAction } = await import("./design-
|
|
3570
|
+
const { designAction } = await import("./design-Tt-ZFs9m.js");
|
|
3570
3571
|
return designAction(directory ?? ".", command.optsWithGlobals());
|
|
3571
3572
|
});
|
|
3572
3573
|
program.command("scan").description("Scan a React interaction in Chrome until you press Enter").argument("[url]", "HTTP(S) URL of the running React app; detects local apps when omitted").option("-f, --format <format>", "report format: text, json, or jsonl", "text").option("--cdp <url>", "reuse Chrome at this remote-debugging endpoint").option("--trace-out <path>", "save the compressed .json.gz DevTools trace at this path").addHelpText("after", renderRuntimeScanHelpEpilog).action(async (url, options) => {
|
|
3573
|
-
const { runtimeScanAction } = await import("./runtime-scan-
|
|
3574
|
+
const { runtimeScanAction } = await import("./runtime-scan-BDoazB45.js");
|
|
3574
3575
|
return runtimeScanAction(url, options);
|
|
3575
3576
|
});
|
|
3576
3577
|
program.command("why <location>").description("Explain why a rule fired (or why a suppression didn't apply) at a file:line").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple)").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (location, options) => {
|
|
3577
|
-
const { whyAction } = await import("./why-
|
|
3578
|
+
const { whyAction } = await import("./why-DGIbrH_C.js");
|
|
3578
3579
|
return whyAction(location, options);
|
|
3579
3580
|
});
|
|
3580
3581
|
program.command("install").alias("setup").description("Install the react-doctor skill into your coding agents and optional git hook").option("-y, --yes", "skip prompts, install for all detected agents").option("--dry-run", "show what would be installed without writing files").option("--agent-hooks", "install end-of-turn agent hooks for Claude Code and Cursor").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderInstallHelpEpilog).action(async (options, command) => {
|
|
3581
|
-
const { installAction } = await import("./install-
|
|
3582
|
+
const { installAction } = await import("./install-khoLmaoy.js");
|
|
3582
3583
|
return installAction(options, command);
|
|
3583
3584
|
});
|
|
3584
3585
|
const providerOption = ["--provider <name>", "ci provider: github-actions or gitlab-ci (auto-detected by default)"];
|
|
3585
3586
|
const prOption = ["--pr", "open a pull request with the change instead of writing it to the working tree"];
|
|
3586
3587
|
const ci = program.command("ci").description("Set up, upgrade, and configure React Doctor in your CI");
|
|
3587
3588
|
ci.command("install").description("Add a CI workflow that scans every pull request").option(...providerOption).option(...prOption).option("--blocking <level>", "gate level: none (advisory, default), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed (default), files, lines, full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; use the defaults").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderCiHelpEpilog).action(async (_options, command) => {
|
|
3588
|
-
const { ciInstallAction } = await import("./ci-
|
|
3589
|
+
const { ciInstallAction } = await import("./ci-DUCX-HuQ.js");
|
|
3589
3590
|
return ciInstallAction(command.optsWithGlobals());
|
|
3590
3591
|
});
|
|
3591
3592
|
ci.command("config").description("Change the gate, scan scope, and pull-request reporting").option(...providerOption).option("--blocking <level>", "gate level: none (advisory), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed, files, lines, or full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; print the current settings").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
|
|
3592
|
-
const { ciConfigAction } = await import("./ci-
|
|
3593
|
+
const { ciConfigAction } = await import("./ci-DUCX-HuQ.js");
|
|
3593
3594
|
return ciConfigAction(command.optsWithGlobals());
|
|
3594
3595
|
});
|
|
3595
3596
|
ci.command("upgrade").description("Upgrade the CI workflow to the action's current major").option(...providerOption).option(...prOption).option("-y, --yes", "skip prompts").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
|
|
3596
|
-
const { ciUpgradeAction } = await import("./ci-
|
|
3597
|
+
const { ciUpgradeAction } = await import("./ci-DUCX-HuQ.js");
|
|
3597
3598
|
return ciUpgradeAction(command.optsWithGlobals());
|
|
3598
3599
|
});
|
|
3599
3600
|
program.command("version").description("show the version with Node and platform info").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async () => {
|
|
3600
|
-
const { versionAction } = await import("./version-
|
|
3601
|
+
const { versionAction } = await import("./version-CUSqbhEh.js");
|
|
3601
3602
|
return versionAction();
|
|
3602
3603
|
});
|
|
3603
3604
|
const rules = program.command("rules").description("List, explain, and configure which React Doctor rules run");
|
|
3604
3605
|
rules.command("list").description("List rules and the severity they run at under your config").option("--category <name>", "only show rules in a category (e.g. Performance)").option("--tag <name>", "only show rules with a tag (e.g. design, test-noise)").option("--framework <name>", "only show rules for a framework (e.g. global, nextjs)").option("--configured", "only show rules your config has changed from the default").option("--json", "output a structured JSON array").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (_options, command) => {
|
|
3605
|
-
const { rulesListAction } = await import("./rules-
|
|
3606
|
+
const { rulesListAction } = await import("./rules-crTvQBaG.js");
|
|
3606
3607
|
return rulesListAction(command.optsWithGlobals());
|
|
3607
3608
|
});
|
|
3608
3609
|
rules.command("explain <rule>").description("Explain why a rule matters, its current severity, and how to configure it").option("--json", "output a structured JSON object").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3609
|
-
const { rulesExplainAction } = await import("./rules-
|
|
3610
|
+
const { rulesExplainAction } = await import("./rules-crTvQBaG.js");
|
|
3610
3611
|
return rulesExplainAction(rule, command.optsWithGlobals());
|
|
3611
3612
|
});
|
|
3612
3613
|
rules.command("set <rule> <severity>").description("Set a rule's severity: off, warn, or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, severity, _options, command) => {
|
|
3613
|
-
const { rulesSetAction } = await import("./rules-
|
|
3614
|
+
const { rulesSetAction } = await import("./rules-crTvQBaG.js");
|
|
3614
3615
|
return rulesSetAction(rule, severity, command.optsWithGlobals());
|
|
3615
3616
|
});
|
|
3616
3617
|
rules.command("enable <rule>").description("Enable a rule at its recommended severity (or pass --severity)").option("--severity <level>", "severity to enable at: warn or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3617
|
-
const { rulesEnableAction } = await import("./rules-
|
|
3618
|
+
const { rulesEnableAction } = await import("./rules-crTvQBaG.js");
|
|
3618
3619
|
return rulesEnableAction(rule, command.optsWithGlobals());
|
|
3619
3620
|
});
|
|
3620
3621
|
rules.command("disable <rule>").description("Disable a rule so it never runs").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3621
|
-
const { rulesDisableAction } = await import("./rules-
|
|
3622
|
+
const { rulesDisableAction } = await import("./rules-crTvQBaG.js");
|
|
3622
3623
|
return rulesDisableAction(rule, command.optsWithGlobals());
|
|
3623
3624
|
});
|
|
3624
3625
|
rules.command("category <category> <severity>").description("Set the severity for a whole category (off, warn, error)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (category, severity, _options, command) => {
|
|
3625
|
-
const { rulesCategoryAction } = await import("./rules-
|
|
3626
|
+
const { rulesCategoryAction } = await import("./rules-crTvQBaG.js");
|
|
3626
3627
|
return rulesCategoryAction(category, severity, command.optsWithGlobals());
|
|
3627
3628
|
});
|
|
3628
3629
|
rules.command("ignore-tag <tag>").description("Skip a whole rule family by tag before linting (e.g. design)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
|
|
3629
|
-
const { rulesIgnoreTagAction } = await import("./rules-
|
|
3630
|
+
const { rulesIgnoreTagAction } = await import("./rules-crTvQBaG.js");
|
|
3630
3631
|
return rulesIgnoreTagAction(tag, command.optsWithGlobals());
|
|
3631
3632
|
});
|
|
3632
3633
|
rules.command("unignore-tag <tag>").description("Stop ignoring a tag previously skipped via ignore-tag").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
|
|
3633
|
-
const { rulesUnignoreTagAction } = await import("./rules-
|
|
3634
|
+
const { rulesUnignoreTagAction } = await import("./rules-crTvQBaG.js");
|
|
3634
3635
|
return rulesUnignoreTagAction(tag, command.optsWithGlobals());
|
|
3635
3636
|
});
|
|
3636
3637
|
program.command("experimental-tui [directory]", { hidden: true }).description("[experimental] interactive, scrollable scan report").option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addOption(new Option("--no-dead-code").hideHelp()).option("--no-supply-chain", "skip the dependency supply-chain scan").option("--score", "only print the numeric score (for scripts and CI)").option("--no-score", "skip the score API, the share URL, and crash reporting").option("--no-cache", "disable all scan caches for this run").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("-p, --project <names>", "scan specific workspace projects (comma-separated, or *)").option("-y, --yes", "skip the project prompt and scan every discovered project").action(async (directory = ".", _localOptions, command) => {
|
|
3637
|
-
const { runScanCommand } = await import("./scan-
|
|
3638
|
+
const { runScanCommand } = await import("./scan-exSzcCQu.js");
|
|
3638
3639
|
return runScanCommand({
|
|
3639
3640
|
directory,
|
|
3640
3641
|
flags: command.optsWithGlobals(),
|
|
@@ -3674,4 +3675,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
3674
3675
|
export {};
|
|
3675
3676
|
|
|
3676
3677
|
//# sourceMappingURL=cli.js.map
|
|
3677
|
-
//# debugId=
|
|
3678
|
+
//# debugId=d3696fb6-15d5-5a85-b708-3f058c610990
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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]="
|
|
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]="124bd894-9916-5990-a0ca-af8ce749fded")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -425,7 +425,7 @@ const MAINTAINABILITY_CATEGORY = "Maintainability";
|
|
|
425
425
|
//#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
|
|
426
426
|
const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
|
|
427
427
|
//#endregion
|
|
428
|
-
//#region ../core/dist/react-compiler-detection-client-
|
|
428
|
+
//#region ../core/dist/react-compiler-detection-client-DrZtNs9J.js
|
|
429
429
|
const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
|
|
430
430
|
const toRequestKey = (request) => [
|
|
431
431
|
request.directory,
|
|
@@ -579,10 +579,10 @@ const setStreamRef = (stream, shouldRef) => {
|
|
|
579
579
|
const setChildProcessRef = (child, shouldRef) => {
|
|
580
580
|
if (shouldRef) {
|
|
581
581
|
child.ref();
|
|
582
|
-
child.channel?.ref();
|
|
582
|
+
if (typeof child.channel?.ref === "function") child.channel.ref();
|
|
583
583
|
} else {
|
|
584
584
|
child.unref();
|
|
585
|
-
child.channel?.unref();
|
|
585
|
+
if (typeof child.channel?.unref === "function") child.channel.unref();
|
|
586
586
|
}
|
|
587
587
|
setStreamRef(child.stdout, shouldRef);
|
|
588
588
|
setStreamRef(child.stderr, shouldRef);
|
|
@@ -1031,5 +1031,5 @@ const METRIC = {
|
|
|
1031
1031
|
//#endregion
|
|
1032
1032
|
export { warmReactCompilerDetection as $, OXLINT_WORKER_JOB_END_MARKER as $t, buildGitSourceListingRequest as A, TARGET_BLANK_BROWSER_SUPPORT as An, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as At, resolveGitCommand as B, MAINTAINABILITY_DUPLICATE_JSX_RULE as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_TTL_MS as Cn, ES_TARGET_YEAR_BY_NAME as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_PLUGIN as Dn, GENERATED_BUNDLE_FILE_PATTERN as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as En, FILE_LINT_CACHE_MAX_FILE_COUNT as Et, lowerChildProcessPriority as F, VERCEL_NEXTJS_SECURITY_RELEASE_URL as Fn, HTML_FILE_PATTERN as Ft, resolvePluginPath as G, MINIFIED_SNIFF_BYTES as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ht, prefetchGitCommand as I, getCategoryImpact as In, IGNORED_DIRECTORIES as It, resolveTsConfigRelativePath as J, OXLINT_NODE_REQUIREMENT as Jt, resolveReactDoctorCacheDir as K, OCCURRENCE_MATCHED_CATEGORIES as Kt, prespawnOxlintWorkers as L, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Mn, GIT_LS_FILES_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TSCONFIG_FILENAMES as Nn, GIT_SHOW_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_RULE as On, GENERATED_SOURCE_DIRECTORY_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TYPESCRIPT_DECLARATION_FILE_PATTERN as Pn, GIT_SOURCE_LISTING_ARGUMENTS as Pt, takeReactCompilerDetection as Q, OXLINT_SPLIT_TOTAL_BUDGET_MS as Qt, readSystemConcurrencyFacts as R, JSX_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, SUPPLY_CHAIN_CACHE_SUBDIR as Sn, ENTERPRISE_CONTACT_URL as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_IGNORED_PACKAGES as Tn, FILE_LINT_CACHE_FILENAME as Tt, resolveOxlintToolchainVersions as U, MAX_GLOB_PATTERN_LENGTH_CHARS as Ut, resolveOxlintBinary as V, MAINTAINABILITY_PLUGIN as Vt, resolveOxlintWorkerRuntime as W, MILLISECONDS_PER_SECOND as Wt, spawnOxlintWorkerProcess as X, OXLINT_OUTPUT_MAX_BYTES as Xt, setChildProcessRef as Y, OXLINT_OOM_RESCUE_BUDGET_MS as Yt, takePrespawnedOxlintWorker as Z, OXLINT_SPAWN_TIMEOUT_MS as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOURCE_FILE_PATTERN as _n, DIAGNOSTIC_CATEGORY_BUCKETS as _t, CACHE_DISABLED_VALUES as a, REACT_ROUTER_CAPABILITY_THRESHOLDS as an, AXIOM_METRICS_DATASET_HEADER as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as bn, DOCS_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, ROOT_CAUSE_GROUPABLE_RULE_KEYS as cn, CANONICAL_DISCORD_URL as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SHARE_BASE_URL as dn, COMPILER_CLEANUP_BUCKET as dt, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SIDECAR_LINT_CACHE_FILENAME as fn, COMPILER_CLEANUP_RULE_KEYS as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_PACKAGE_PAGE_BASE as gn, DEFAULT_BRANCH_CANDIDATES as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_USER_AGENT as hn, CONFIG_SCHEMA_URL as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, REACT_BLOG_RSC_ADVISORY_URL as in, AXIOM_DEFAULT_DOMAIN as it, buildOxlintChildEnv as j, TELEMETRY_EXPORT_INTERVAL_MS as jn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, TAILWIND_POSTCSS7_COMPAT_ALIAS as kn, GITHUB_ACTIONS_SETUP_URL as kt, INTERNAL_ERROR_JSON_FALLBACK as l, SCANNED_DOT_DIRECTORIES as ln, CANONICAL_GITHUB_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SOCKET_FREE_PURL_API_BASE as mn, CONFIG_FINGERPRINT_FILENAMES as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as nn, APP_ONLY_RULE_KEYS as nt, CI_TRUST_COMPANIES as o, REACT_SERVER_DOM_PACKAGES as on, AXIOM_METRICS_PATH as ot, NANOSECONDS_PER_MILLISECOND as p, SKILL_NAME as pn, CONFIG_CACHE_TTL_MS as pt, resolveScanConcurrency as q, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as rn, AXIOM_DATASET_HEADER as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as sn, AXIOM_TRACES_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCORE_API_URL as un, CI_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SPAWN_ARGS_MAX_LENGTH_CHARS as vn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CATEGORY as wn, FETCH_TIMEOUT_MS as wt, SENTRY_DSN as x, STAGED_FILES_PROJECT_CONFIG_FILENAMES as xn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as yn, DOCS_RULES_BASE_URL as yt, resolveConfiguredScanConcurrency as z, MAINTAINABILITY_CATEGORY as zt };
|
|
1033
1033
|
|
|
1034
|
-
//# sourceMappingURL=constants-
|
|
1035
|
-
//# debugId=
|
|
1034
|
+
//# sourceMappingURL=constants-CgtYeXfx.js.map
|
|
1035
|
+
//# debugId=124bd894-9916-5990-a0ca-af8ce749fded
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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]="
|
|
3
|
-
import { t as inspectAction } from "./inspect-
|
|
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]="bde332a9-40ec-5a8d-b228-bf3b4629d0ad")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-BAkqsrkD.js";
|
|
4
4
|
//#region src/cli/commands/design.ts
|
|
5
5
|
const designAction = async (directory, flags) => inspectAction(directory, {
|
|
6
6
|
...flags,
|
|
@@ -10,5 +10,5 @@ const designAction = async (directory, flags) => inspectAction(directory, {
|
|
|
10
10
|
//#endregion
|
|
11
11
|
export { designAction };
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=design-
|
|
14
|
-
//# debugId=
|
|
13
|
+
//# sourceMappingURL=design-Tt-ZFs9m.js.map
|
|
14
|
+
//# debugId=bde332a9-40ec-5a8d-b228-bf3b4629d0ad
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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]="
|
|
3
|
-
import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-
|
|
4
|
-
import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-
|
|
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]="67733e97-406e-5564-8100-af0b37069e35")}catch(e){}}();
|
|
3
|
+
import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-Bo4F3DMW.js";
|
|
4
|
+
import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-S4WeFLfO.js";
|
|
5
5
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
6
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
6
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-CCmUn54o.js";
|
|
7
7
|
//#region src/cli/utils/active-tui-renderer.ts
|
|
8
8
|
let activeTuiRenderer = null;
|
|
9
9
|
const registerActiveTuiRenderer = (renderer) => {
|
|
@@ -50,5 +50,5 @@ const exitGracefully = () => {
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { registerActiveTuiRenderer as n, exitGracefully as t };
|
|
52
52
|
|
|
53
|
-
//# sourceMappingURL=exit-gracefully-
|
|
54
|
-
//# debugId=
|
|
53
|
+
//# sourceMappingURL=exit-gracefully-DEuC4oPi.js.map
|
|
54
|
+
//# debugId=67733e97-406e-5564-8100-af0b37069e35
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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]="
|
|
3
|
-
import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-
|
|
4
|
-
import { Ln as isErrnoException, Ot as highlighter, _ as VERSION, _t as formatErrorChain, jt as isReactDoctorError, rn as error, t as recordCount, un as gen, vt as formatReactDoctorError, yn as runSync } from "./record-metric-
|
|
5
|
-
import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-
|
|
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]="7245989b-efa9-5a24-802e-7d4a772f0355")}catch(e){}}();
|
|
3
|
+
import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-CgtYeXfx.js";
|
|
4
|
+
import { Ln as isErrnoException, Ot as highlighter, _ as VERSION, _t as formatErrorChain, jt as isReactDoctorError, rn as error, t as recordCount, un as gen, vt as formatReactDoctorError, yn as runSync } from "./record-metric-Bo4F3DMW.js";
|
|
5
|
+
import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-S4WeFLfO.js";
|
|
6
6
|
//#region src/cli/utils/handle-error.ts
|
|
7
7
|
const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
|
|
8
8
|
const OTLP_AUTH_HEADER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_AUTH_HEADER";
|
|
@@ -111,5 +111,5 @@ const handleUserError = (error$1, options = {}) => {
|
|
|
111
111
|
//#endregion
|
|
112
112
|
export { handleUserError as n, handleError as t };
|
|
113
113
|
|
|
114
|
-
//# sourceMappingURL=handle-error-
|
|
115
|
-
//# debugId=
|
|
114
|
+
//# sourceMappingURL=handle-error-CskGb6M7.js.map
|
|
115
|
+
//# debugId=7245989b-efa9-5a24-802e-7d4a772f0355
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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]="
|
|
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]="c7496d33-4f38-5fe4-9528-8be6b127ea0b")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as fs$1$2 from "node:fs";
|
|
@@ -438,7 +438,7 @@ const isPlainObject = (value) => {
|
|
|
438
438
|
//#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
|
|
439
439
|
const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../core/dist/react-compiler-detection-client-
|
|
441
|
+
//#region ../core/dist/react-compiler-detection-client-DrZtNs9J.js
|
|
442
442
|
const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
|
|
443
443
|
const toRequestKey = (request) => [
|
|
444
444
|
request.directory,
|
|
@@ -584,10 +584,10 @@ const setStreamRef = (stream, shouldRef) => {
|
|
|
584
584
|
const setChildProcessRef = (child, shouldRef) => {
|
|
585
585
|
if (shouldRef) {
|
|
586
586
|
child.ref();
|
|
587
|
-
child.channel?.ref();
|
|
587
|
+
if (typeof child.channel?.ref === "function") child.channel.ref();
|
|
588
588
|
} else {
|
|
589
589
|
child.unref();
|
|
590
|
-
child.channel?.unref();
|
|
590
|
+
if (typeof child.channel?.unref === "function") child.channel.unref();
|
|
591
591
|
}
|
|
592
592
|
setStreamRef(child.stdout, shouldRef);
|
|
593
593
|
setStreamRef(child.stderr, shouldRef);
|
|
@@ -67450,21 +67450,24 @@ const isPackageJsonReanimatedAware = (packageJson) => {
|
|
|
67450
67450
|
};
|
|
67451
67451
|
return Object.hasOwn(allDependencies, REANIMATED_DEPENDENCY_NAME$1);
|
|
67452
67452
|
};
|
|
67453
|
-
const
|
|
67454
|
-
"@react-router/cloudflare",
|
|
67455
|
-
"@react-router/node",
|
|
67456
|
-
"@react-router/serve",
|
|
67457
|
-
"vike",
|
|
67458
|
-
"vite-plugin-ssr"
|
|
67459
|
-
]);
|
|
67460
|
-
const isPackageJsonSsrAware = (packageJson) => {
|
|
67453
|
+
const hasAnyDependency = (packageJson, packageNames) => {
|
|
67461
67454
|
const allDependencies = {
|
|
67462
67455
|
...packageJson.peerDependencies,
|
|
67463
67456
|
...packageJson.dependencies,
|
|
67464
67457
|
...packageJson.devDependencies,
|
|
67465
67458
|
...packageJson.optionalDependencies
|
|
67466
67459
|
};
|
|
67467
|
-
return
|
|
67460
|
+
return packageNames.some((packageName) => allDependencies[packageName] !== void 0);
|
|
67461
|
+
};
|
|
67462
|
+
const SSR_DEPENDENCY_NAMES = [
|
|
67463
|
+
"@react-router/cloudflare",
|
|
67464
|
+
"@react-router/node",
|
|
67465
|
+
"@react-router/serve",
|
|
67466
|
+
"vike",
|
|
67467
|
+
"vite-plugin-ssr"
|
|
67468
|
+
];
|
|
67469
|
+
const isPackageJsonSsrAware = (packageJson) => {
|
|
67470
|
+
return hasAnyDependency(packageJson, SSR_DEPENDENCY_NAMES);
|
|
67468
67471
|
};
|
|
67469
67472
|
const getWorkspacePatterns = (rootDirectory, packageJson) => {
|
|
67470
67473
|
const pnpmPatterns = parsePnpmWorkspacePatterns(rootDirectory);
|
|
@@ -67582,15 +67585,6 @@ const getTanStackQueryVersion = (packageJson) => {
|
|
|
67582
67585
|
packageNames: TANSTACK_REACT_QUERY_PACKAGES
|
|
67583
67586
|
});
|
|
67584
67587
|
};
|
|
67585
|
-
const hasAnyDependency = (packageJson, packageNames) => {
|
|
67586
|
-
const allDependencies = {
|
|
67587
|
-
...packageJson.peerDependencies,
|
|
67588
|
-
...packageJson.dependencies,
|
|
67589
|
-
...packageJson.devDependencies,
|
|
67590
|
-
...packageJson.optionalDependencies
|
|
67591
|
-
};
|
|
67592
|
-
return packageNames.some((packageName) => allDependencies[packageName] !== void 0);
|
|
67593
|
-
};
|
|
67594
67588
|
const BASE_UI_PACKAGES = ["@base-ui-components/react", "@base-ui/react"];
|
|
67595
67589
|
const hasBaseUiDependency = (packageJson) => hasAnyDependency(packageJson, BASE_UI_PACKAGES);
|
|
67596
67590
|
const RADIX_UNIFIED_PACKAGE = "radix-ui";
|
|
@@ -67627,13 +67621,7 @@ const I18N_PACKAGES = [
|
|
|
67627
67621
|
"react-intl-universal"
|
|
67628
67622
|
];
|
|
67629
67623
|
const hasI18nDependency = (packageJson) => {
|
|
67630
|
-
|
|
67631
|
-
...packageJson.peerDependencies,
|
|
67632
|
-
...packageJson.dependencies,
|
|
67633
|
-
...packageJson.devDependencies,
|
|
67634
|
-
...packageJson.optionalDependencies
|
|
67635
|
-
};
|
|
67636
|
-
return I18N_PACKAGES.some((packageName) => allDependencies[packageName] !== void 0);
|
|
67624
|
+
return hasAnyDependency(packageJson, I18N_PACKAGES);
|
|
67637
67625
|
};
|
|
67638
67626
|
const REACT_ARIA_COMPONENT_PACKAGES = ["react-aria-components"];
|
|
67639
67627
|
const TANSTACK_TABLE_PACKAGES = ["@tanstack/react-table"];
|
|
@@ -68724,7 +68712,6 @@ const warnConfigIssue = (message) => {
|
|
|
68724
68712
|
process.stderr.write(`[react-doctor] ${message}\n`);
|
|
68725
68713
|
};
|
|
68726
68714
|
const isStringArray = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string");
|
|
68727
|
-
const collectStringList = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : [];
|
|
68728
68715
|
const hasMatchingRuleOverride = (ruleIds, ruleIdentifier) => {
|
|
68729
68716
|
if (ruleIds.size === 0) return true;
|
|
68730
68717
|
for (const ruleId of ruleIds) if (isSameRuleKey(ruleId, ruleIdentifier)) return true;
|
|
@@ -68758,11 +68745,11 @@ const compileIgnoreOverrides = (userConfig) => {
|
|
|
68758
68745
|
return overrides.flatMap((entry, index) => {
|
|
68759
68746
|
const validated = validateOverrideEntry(entry, index);
|
|
68760
68747
|
if (!validated) return [];
|
|
68761
|
-
const filePatterns = compileGlobPatternsLenient(
|
|
68748
|
+
const filePatterns = compileGlobPatternsLenient(validated.files, (error) => warnConfigIssue(`ignore.overrides[${index}]: ${error.message}`));
|
|
68762
68749
|
if (filePatterns.length === 0) return [];
|
|
68763
68750
|
return [{
|
|
68764
68751
|
filePatterns,
|
|
68765
|
-
ruleIds: new Set(
|
|
68752
|
+
ruleIds: new Set(validated.rules ?? [])
|
|
68766
68753
|
}];
|
|
68767
68754
|
});
|
|
68768
68755
|
};
|
|
@@ -79302,4 +79289,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
79302
79289
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
79303
79290
|
|
|
79304
79291
|
//# sourceMappingURL=index.js.map
|
|
79305
|
-
//# debugId=
|
|
79292
|
+
//# debugId=c7496d33-4f38-5fe4-9528-8be6b127ea0b
|
|
@@ -1,19 +1,19 @@
|
|
|
1
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]="
|
|
3
|
-
import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-
|
|
4
|
-
import { A as Git, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Et as hasSupportedFrameworkOrLibrary, G as StagedFiles, Gt as resolveScanTarget, Ht as remainingDeadlineBudgetMs, Ln as isErrnoException, Lt as listWorkspacePackages, Ot as highlighter, Pn as messageFromUnknown, Qt as toRelativePath, S as isDebugFlagEnabled, St as getDiffInfo, Tn as provide, X as buildJsonReport, _ as VERSION, bt as getChangedLineRanges, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, hn as provide$1, n as recordDistribution, p as setJsonReportMode, t as recordCount, u as enableJsonMode, un as gen, vn as runPromise, y as CliInputError, yt as getBaselineDiffPlan, zn as isPlainObject, zt as mapWithConcurrency } from "./record-metric-
|
|
5
|
-
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-
|
|
6
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
7
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
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]="46007fd7-616e-5e78-9894-793a3b573b09")}catch(e){}}();
|
|
3
|
+
import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-CgtYeXfx.js";
|
|
4
|
+
import { A as Git, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Et as hasSupportedFrameworkOrLibrary, G as StagedFiles, Gt as resolveScanTarget, Ht as remainingDeadlineBudgetMs, Ln as isErrnoException, Lt as listWorkspacePackages, Ot as highlighter, Pn as messageFromUnknown, Qt as toRelativePath, S as isDebugFlagEnabled, St as getDiffInfo, Tn as provide, X as buildJsonReport, _ as VERSION, bt as getChangedLineRanges, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, hn as provide$1, n as recordDistribution, p as setJsonReportMode, t as recordCount, u as enableJsonMode, un as gen, vn as runPromise, y as CliInputError, yt as getBaselineDiffPlan, zn as isPlainObject, zt as mapWithConcurrency } from "./record-metric-Bo4F3DMW.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-S4WeFLfO.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CskGb6M7.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-BV4XPBjh.js";
|
|
8
8
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
9
|
-
import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
10
|
-
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-
|
|
11
|
-
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
12
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
13
|
-
import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-
|
|
14
|
-
import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-
|
|
15
|
-
import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-
|
|
16
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
9
|
+
import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BptmsvYT.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-DwPWX3U-.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DoZnZpf1.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-D-0qxYdX.js";
|
|
13
|
+
import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-BoLh1u6a.js";
|
|
14
|
+
import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-CtUa_tHV.js";
|
|
15
|
+
import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-NFIptyyZ.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-B8V7-6YI.js";
|
|
17
17
|
import * as fs$1 from "node:fs";
|
|
18
18
|
import * as path$1 from "node:path";
|
|
19
19
|
import { tmpdir } from "node:os";
|
|
@@ -1461,5 +1461,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
|
|
|
1461
1461
|
//#endregion
|
|
1462
1462
|
export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
|
|
1463
1463
|
|
|
1464
|
-
//# sourceMappingURL=inspect-
|
|
1465
|
-
//# debugId=
|
|
1464
|
+
//# sourceMappingURL=inspect-BAkqsrkD.js.map
|
|
1465
|
+
//# debugId=46007fd7-616e-5e78-9894-793a3b573b09
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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]="
|
|
3
|
-
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-
|
|
4
|
-
import { Ot as highlighter, an as log, b as isNonInteractiveEnvironment, in as info$1, on as warn, rn as error$1, yn as runSync } from "./record-metric-
|
|
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]="11ba71db-f05a-5864-9466-1f4f55a2d843")}catch(e){}}();
|
|
3
|
+
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-CgtYeXfx.js";
|
|
4
|
+
import { Ot as highlighter, an as log, b as isNonInteractiveEnvironment, in as info$1, on as warn, rn as error$1, yn as runSync } from "./record-metric-Bo4F3DMW.js";
|
|
5
5
|
import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
|
|
6
6
|
import * as fs$1 from "node:fs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
@@ -2814,5 +2814,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
|
|
|
2814
2814
|
//#endregion
|
|
2815
2815
|
export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
|
|
2816
2816
|
|
|
2817
|
-
//# sourceMappingURL=install-doctor-script-
|
|
2818
|
-
//# debugId=
|
|
2817
|
+
//# sourceMappingURL=install-doctor-script-BptmsvYT.js.map
|
|
2818
|
+
//# debugId=11ba71db-f05a-5864-9466-1f4f55a2d843
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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]="
|
|
3
|
-
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-
|
|
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]="290ed5f8-144b-57b3-8236-c014f4587fcd")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-CgtYeXfx.js";
|
|
4
4
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-BptmsvYT.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import * as path$1 from "node:path";
|
|
@@ -267,5 +267,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
|
|
|
267
267
|
//#endregion
|
|
268
268
|
export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
|
|
269
269
|
|
|
270
|
-
//# sourceMappingURL=install-github-workflow-
|
|
271
|
-
//# debugId=
|
|
270
|
+
//# sourceMappingURL=install-github-workflow-DwPWX3U-.js.map
|
|
271
|
+
//# debugId=290ed5f8-144b-57b3-8236-c014f4587fcd
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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]="
|
|
3
|
-
import { u as METRIC } from "./constants-
|
|
4
|
-
import { t as recordCount, yn as runSync } from "./record-metric-
|
|
5
|
-
import { o as isExpectedUserError } from "./telemetry-runtime-
|
|
6
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
7
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
8
|
-
import { t as printBrandedHeader } from "./print-branded-header-
|
|
9
|
-
import { n as runInstallReactDoctor } from "./install-react-doctor-
|
|
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]="aa57f283-919a-5e10-bf37-9e4e815d4b0a")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-CgtYeXfx.js";
|
|
4
|
+
import { t as recordCount, yn as runSync } from "./record-metric-Bo4F3DMW.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-S4WeFLfO.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CskGb6M7.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-BV4XPBjh.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-SQtdX9N4.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-NFIptyyZ.js";
|
|
10
10
|
//#region src/cli/commands/install.ts
|
|
11
11
|
const installAction = async (options, command) => {
|
|
12
12
|
recordCount(METRIC.cliInvoked, 1, { command: "install" });
|
|
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { installAction };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=install-
|
|
34
|
-
//# debugId=
|
|
33
|
+
//# sourceMappingURL=install-khoLmaoy.js.map
|
|
34
|
+
//# debugId=aa57f283-919a-5e10-bf37-9e4e815d4b0a
|