react-doctor 0.9.23-dev.ed93f67 → 0.9.23-dev.eeff4d4
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-DzuKtYKf.js → build-section-divider-M4JYIvJl.js} +5 -5
- package/dist/{ci-lxPnLNY2.js → ci-D7ljXIo9.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-EMNGZNtj.js → constants-BXN6vJ3T.js} +21 -8
- package/dist/{constants-T2clfs7L.js → constants-zyF-Em_y.js} +10 -3
- package/dist/{design-88ebRYs1.js → design-XQwuAooI.js} +4 -4
- package/dist/duplicate-jsx-worker.js +1 -1
- package/dist/{exit-gracefully-Dcr71UQz.js → exit-gracefully-BOyeEcyb.js} +6 -6
- package/dist/{handle-error-CU_FATUx.js → handle-error-UWlOKn6r.js} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +913 -60
- package/dist/{inspect-DAWaaj5s.js → inspect-F_2FwEY4.js} +16 -16
- package/dist/{install-DSkwdY2A.js → install-KoxCju0L.js} +10 -10
- package/dist/{install-doctor-script-BMFIMJNG.js → install-doctor-script-BrfKpUzQ.js} +5 -5
- package/dist/{install-github-workflow-CnUL3IaA.js → install-github-workflow-hAvw3S8o.js} +6 -6
- package/dist/{install-react-doctor-CyRBo17H.js → install-react-doctor-Dt86VM3q.js} +9 -9
- package/dist/{is-cache-globally-disabled-CYjFzsDs.js → is-cache-globally-disabled-DaT77eEZ.js} +4 -4
- package/dist/{jsx-runtime-Di-r43F6.js → jsx-runtime-BrXRMax1.js} +6 -6
- package/dist/oxlint-worker.js +1 -1
- package/dist/{print-branded-header-C_IdES5E.js → print-branded-header-BtUUFoRA.js} +4 -4
- package/dist/project-analysis-worker.js +105 -7
- package/dist/{prompt-runtime-scan-url-BfVNLYXF.js → prompt-runtime-scan-url-Buwk-3bK.js} +5 -5
- package/dist/{read-object-file-Lc7IMSGY.js → read-object-file-_cBPiQ53.js} +4 -4
- package/dist/{record-metric-D5cWO5c1.js → record-metric-CqZ2oVM5.js} +902 -61
- package/dist/{report-error-DNUzAKVW.js → report-error-TQ0RuHaV.js} +6 -6
- package/dist/{report-workflow-result-4mYTuWWb.js → report-workflow-result-AVT357TZ.js} +6 -6
- package/dist/{resolve-scan-exit-code-BTg4e2sN.js → resolve-scan-exit-code-DHwcZs-_.js} +13 -13
- package/dist/{resolve-scope-C3GbCfvM.js → resolve-scope-C0xGQv5Z.js} +6 -6
- package/dist/{rules-JNqrM_qU.js → rules-DrN3BHA6.js} +7 -7
- package/dist/{run-scan-app-DOOG-mGi.js → run-scan-app-DgD9ZUcX.js} +11 -11
- package/dist/{runtime-scan-BzDfOeYC.js → runtime-scan-CUd9z8wt.js} +10 -10
- package/dist/{sanitize-runtime-url-CxOV1srN.js → sanitize-runtime-url-BbR8vJyj.js} +4 -4
- package/dist/{scan-ivk9wx91.js → scan-DStBkQc_.js} +10 -10
- package/dist/{should-skip-prompts-Bictn_Xl.js → should-skip-prompts-B3A5qWMu.js} +4 -4
- package/dist/{should-use-tui-DGIYCdEm.js → should-use-tui-lowPvEnC.js} +4 -4
- package/dist/{start-scan-preamble-Zd-z2ssT.js → start-scan-preamble-CTa9UHkf.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-ByXNkZlA.js → telemetry-runtime-DJWGuzba.js} +7 -7
- package/dist/{version-CCx32laG.js → version-gbK4YNDr.js} +5 -5
- package/dist/{why-Bu3hAeLo.js → why-Cdmh9drp.js} +4 -4
- package/dist/{with-run-span-5rSWU2YJ.js → with-run-span-CmXGFcgD.js} +6 -6
- package/package.json +4 -4
|
@@ -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,
|
|
4
|
-
import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } 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]="7b0d9517-3e34-5ca2-b042-10443709e754")}catch(e){}}();
|
|
3
|
+
import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX, wn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-BXN6vJ3T.js";
|
|
4
|
+
import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-CqZ2oVM5.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DJWGuzba.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-UWlOKn6r.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-TQ0RuHaV.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, k as runGit, 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 resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-
|
|
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, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BrfKpUzQ.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-hAvw3S8o.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-C0xGQv5Z.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-B3A5qWMu.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 resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DHwcZs-_.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-AVT357TZ.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-Dt86VM3q.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-_cBPiQ53.js";
|
|
17
17
|
import * as fs$1 from "node:fs";
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import * as path$1 from "node:path";
|
|
@@ -1528,5 +1528,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
|
|
|
1528
1528
|
//#endregion
|
|
1529
1529
|
export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
|
|
1530
1530
|
|
|
1531
|
-
//# sourceMappingURL=inspect-
|
|
1532
|
-
//# debugId=
|
|
1531
|
+
//# sourceMappingURL=inspect-F_2FwEY4.js.map
|
|
1532
|
+
//# debugId=7b0d9517-3e34-5ca2-b042-10443709e754
|
|
@@ -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 { En as runSync, t as recordCount } 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]="b7df2ba3-0889-558b-8915-37fc44fcd820")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-BXN6vJ3T.js";
|
|
4
|
+
import { En as runSync, t as recordCount } from "./record-metric-CqZ2oVM5.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-DJWGuzba.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-UWlOKn6r.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-TQ0RuHaV.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-BtUUFoRA.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-Dt86VM3q.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-KoxCju0L.js.map
|
|
34
|
+
//# debugId=b7df2ba3-0889-558b-8915-37fc44fcd820
|
|
@@ -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 { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } 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]="8dbdae1f-14f3-501e-aca8-d4dc3f3fdabf")}catch(e){}}();
|
|
3
|
+
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-BXN6vJ3T.js";
|
|
4
|
+
import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-CqZ2oVM5.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";
|
|
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
|
|
|
2818
2818
|
//#endregion
|
|
2819
2819
|
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 };
|
|
2820
2820
|
|
|
2821
|
-
//# sourceMappingURL=install-doctor-script-
|
|
2822
|
-
//# debugId=
|
|
2821
|
+
//# sourceMappingURL=install-doctor-script-BrfKpUzQ.js.map
|
|
2822
|
+
//# debugId=8dbdae1f-14f3-501e-aca8-d4dc3f3fdabf
|
|
@@ -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 { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-
|
|
4
|
-
import { _t as findGitRepositoryRoot } 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]="b4aa12cc-9ca8-52cc-9d57-ce7b52834c1a")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-BXN6vJ3T.js";
|
|
4
|
+
import { _t as findGitRepositoryRoot } from "./record-metric-CqZ2oVM5.js";
|
|
5
5
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
6
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
+
import { N as cliLogger } from "./install-doctor-script-BrfKpUzQ.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import * as fs$1 from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
|
|
|
281
281
|
//#endregion
|
|
282
282
|
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 };
|
|
283
283
|
|
|
284
|
-
//# sourceMappingURL=install-github-workflow-
|
|
285
|
-
//# debugId=
|
|
284
|
+
//# sourceMappingURL=install-github-workflow-hAvw3S8o.js.map
|
|
285
|
+
//# debugId=b4aa12cc-9ca8-52cc-9d57-ce7b52834c1a
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { At as GITHUB_ACTIONS_SETUP_URL,
|
|
4
|
-
import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-
|
|
5
|
-
import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-
|
|
6
|
-
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-
|
|
7
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
8
|
-
import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-
|
|
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]="3570be3b-8d3b-5fec-aba2-22f617201ade")}catch(e){}}();
|
|
3
|
+
import { At as GITHUB_ACTIONS_SETUP_URL, gn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-BXN6vJ3T.js";
|
|
4
|
+
import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-CqZ2oVM5.js";
|
|
5
|
+
import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-BrfKpUzQ.js";
|
|
6
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-hAvw3S8o.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-B3A5qWMu.js";
|
|
8
|
+
import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-AVT357TZ.js";
|
|
9
9
|
import * as fs$1 from "node:fs";
|
|
10
10
|
import * as path$1 from "node:path";
|
|
11
11
|
import { execFile } from "node:child_process";
|
|
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
|
|
|
1156
1156
|
//#endregion
|
|
1157
1157
|
export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
|
|
1158
1158
|
|
|
1159
|
-
//# sourceMappingURL=install-react-doctor-
|
|
1160
|
-
//# debugId=
|
|
1159
|
+
//# sourceMappingURL=install-react-doctor-Dt86VM3q.js.map
|
|
1160
|
+
//# debugId=3570be3b-8d3b-5fec-aba2-22f617201ade
|
package/dist/{is-cache-globally-disabled-CYjFzsDs.js → is-cache-globally-disabled-DaT77eEZ.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
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 { a as CACHE_DISABLED_VALUES } 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]="6040eb82-7708-5a31-9cbc-e25a153dc2ee")}catch(e){}}();
|
|
3
|
+
import { a as CACHE_DISABLED_VALUES } from "./constants-BXN6vJ3T.js";
|
|
4
4
|
//#region src/cli/utils/is-cache-globally-disabled.ts
|
|
5
5
|
const isCacheGloballyDisabled = () => CACHE_DISABLED_VALUES.has(process.env.REACT_DOCTOR_NO_CACHE?.toLowerCase() ?? "");
|
|
6
6
|
//#endregion
|
|
7
7
|
export { isCacheGloballyDisabled as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=is-cache-globally-disabled-
|
|
10
|
-
//# debugId=
|
|
9
|
+
//# sourceMappingURL=is-cache-globally-disabled-DaT77eEZ.js.map
|
|
10
|
+
//# debugId=6040eb82-7708-5a31-9cbc-e25a153dc2ee
|
|
@@ -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]="
|
|
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]="d8a93e36-f682-5198-8807-872277409506")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { u as METRIC } from "./constants-
|
|
5
|
-
import { t as recordCount } from "./record-metric-
|
|
6
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
4
|
+
import { u as METRIC } from "./constants-BXN6vJ3T.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-CqZ2oVM5.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BOyeEcyb.js";
|
|
7
7
|
import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-DRPy7dqz.js";
|
|
8
8
|
import * as fs$1 from "node:fs";
|
|
9
9
|
import fs from "node:fs";
|
|
@@ -25870,5 +25870,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25870
25870
|
//#endregion
|
|
25871
25871
|
export { useExitOnCtrlC as a, Spinner as c, useInput as d, Transform as f, Box as h, import_react as i, useStdout as l, Text as m, registerMountedTuiRenderer as n, terminalSymbols as o, render as p, useStdoutDimensions as r, isPrintableInput as s, require_jsx_runtime as t, useApp as u };
|
|
25872
25872
|
|
|
25873
|
-
//# sourceMappingURL=jsx-runtime-
|
|
25874
|
-
//# debugId=
|
|
25873
|
+
//# sourceMappingURL=jsx-runtime-BrXRMax1.js.map
|
|
25874
|
+
//# debugId=d8a93e36-f682-5198-8807-872277409506
|
package/dist/oxlint-worker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
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]="036daa0d-20ef-5a7e-b004-e4f41f80cf0c")}catch(e){}}();
|
|
3
|
-
import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-
|
|
3
|
+
import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-zyF-Em_y.js";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -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 { Nt as highlighter, _ as VERSION, _n as gen, dn as log } 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]="7fabf8c5-5d78-5bf3-99f9-cff5b545aca3")}catch(e){}}();
|
|
3
|
+
import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-CqZ2oVM5.js";
|
|
4
4
|
//#region src/cli/utils/print-branded-header.ts
|
|
5
5
|
/**
|
|
6
6
|
* Single branded line every command prints first when not in JSON
|
|
@@ -18,5 +18,5 @@ const printBrandedHeader = gen(function* () {
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { printBrandedHeader as t };
|
|
20
20
|
|
|
21
|
-
//# sourceMappingURL=print-branded-header-
|
|
22
|
-
//# debugId=
|
|
21
|
+
//# sourceMappingURL=print-branded-header-BtUUFoRA.js.map
|
|
22
|
+
//# debugId=7fabf8c5-5d78-5bf3-99f9-cff5b545aca3
|
|
@@ -1,10 +1,10 @@
|
|
|
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]="670a5edf-6d7a-5b42-a22b-205573f9c498")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { n as require_picomatch$2, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
5
5
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
6
6
|
import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
|
|
7
|
-
import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-
|
|
7
|
+
import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-zyF-Em_y.js";
|
|
8
8
|
import { n as isPlainObject } from "./fs-utils-C88IbqFa.js";
|
|
9
9
|
import { builtinModules } from "node:module";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
@@ -38069,7 +38069,7 @@ const NESTED_EXPO_CONFIG_FILE_GLOBS = [
|
|
|
38069
38069
|
];
|
|
38070
38070
|
const EXPO_REACT_NATIVE_DEPENDENCIES = new Set(["expo", "react-native"]);
|
|
38071
38071
|
const EXPO_PLUGIN_RESOLVABLE_EXTENSIONS = SOURCE_EXTENSIONS$3.map((sourceExtension) => `.${sourceExtension}`);
|
|
38072
|
-
const isRecord = (value) => typeof value === "object" && value !== null;
|
|
38072
|
+
const isRecord$1 = (value) => typeof value === "object" && value !== null;
|
|
38073
38073
|
const isExpoOrReactNativeWorkspace = (dependencies) => [...EXPO_REACT_NATIVE_DEPENDENCIES].some((dependencyName) => dependencyName in dependencies);
|
|
38074
38074
|
const isLocalExpoPluginPath = (value) => (value.startsWith("./") || value.startsWith("../")) && !value.includes("*") && !value.includes("?");
|
|
38075
38075
|
const isFile = (filePath) => {
|
|
@@ -38220,9 +38220,9 @@ const collectPluginPathsFromJsonValue = (value) => {
|
|
|
38220
38220
|
const collectExpoPluginPathsFromAppJson = (configPath, entries, packageNamePlugins, rootDirectory) => {
|
|
38221
38221
|
const parsedJson = JSON.parse(readFileSync(configPath, "utf8"));
|
|
38222
38222
|
const configDirectory = dirname(configPath);
|
|
38223
|
-
if (!isRecord(parsedJson)) return;
|
|
38223
|
+
if (!isRecord$1(parsedJson)) return;
|
|
38224
38224
|
const expoConfig = parsedJson.expo;
|
|
38225
|
-
const expoPluginPaths = isRecord(expoConfig) ? collectPluginPathsFromJsonValue(expoConfig.plugins) : [];
|
|
38225
|
+
const expoPluginPaths = isRecord$1(expoConfig) ? collectPluginPathsFromJsonValue(expoConfig.plugins) : [];
|
|
38226
38226
|
for (const pluginPath of [...expoPluginPaths, ...collectPluginPathsFromJsonValue(parsedJson.plugins)]) addExpoPluginEntry(entries, packageNamePlugins, rootDirectory, configDirectory, pluginPath);
|
|
38227
38227
|
};
|
|
38228
38228
|
const collectExpoPluginPathsFromConfig = (configPath, entries, packageNamePlugins, rootDirectory) => {
|
|
@@ -45622,6 +45622,9 @@ const collectDynamicBuildConsumedExportKeys = (packageDirectory, scripts) => {
|
|
|
45622
45622
|
return consumedExportKeys;
|
|
45623
45623
|
};
|
|
45624
45624
|
//#endregion
|
|
45625
|
+
//#region ../core/src/utils/is-record.ts
|
|
45626
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
45627
|
+
//#endregion
|
|
45625
45628
|
//#region ../core/src/project-analysis/utils/collect-convention-consumed-export-keys.ts
|
|
45626
45629
|
const NEXT_CONFIG_FILENAMES = [
|
|
45627
45630
|
"next.config.ts",
|
|
@@ -45632,6 +45635,62 @@ const NEXT_CONFIG_FILENAMES = [
|
|
|
45632
45635
|
const NEXT_ROUTE_SEGMENT_MODULE_PATTERN = /^(?:src\/)?app\/(?:.*\/)?(?:page|layout|route|default|loading|error|not-found|template|global-error|forbidden|unauthorized|opengraph-image|twitter-image|icon|apple-icon|manifest|sitemap|robots)\.(?:ts|tsx|js|jsx)$/;
|
|
45633
45636
|
const REACT_EMAIL_TEMPLATE_EXTENSION_PATTERN = /\.(?:js|jsx|tsx)$/;
|
|
45634
45637
|
const hasDependency = (packageMetadata, dependencyName) => packageMetadata.dependencyNames.has(dependencyName);
|
|
45638
|
+
const resolveLiteralPackagePath = (path, directory) => {
|
|
45639
|
+
const normalized = path.replace(/^\.\//, "").replace(/\/$/, "");
|
|
45640
|
+
if (!/^[\w@.-]+(?:\/[\w@.-]+)*$/.test(normalized) || normalized.split("/").some((part) => part === "." || part === ".." || part === "node_modules")) return void 0;
|
|
45641
|
+
const resolved = resolve(directory, normalized);
|
|
45642
|
+
const canonicalPath = toFilesystemIdentityPath(resolved);
|
|
45643
|
+
return relative(directory, resolved) === relative(directory, canonicalPath) ? canonicalPath : void 0;
|
|
45644
|
+
};
|
|
45645
|
+
const portablePackageFilePath = (file, packageDirectory) => {
|
|
45646
|
+
const filePath = resolve(file);
|
|
45647
|
+
const lexicalPackageDirectory = findNearestPackageDirectory(filePath);
|
|
45648
|
+
if (!lexicalPackageDirectory || toFilesystemIdentityPath(lexicalPackageDirectory) !== packageDirectory) return void 0;
|
|
45649
|
+
const packageRelativeFile = relative(lexicalPackageDirectory, filePath);
|
|
45650
|
+
const canonicalPath = toFilesystemIdentityPath(filePath);
|
|
45651
|
+
return relative(packageDirectory, canonicalPath) === packageRelativeFile ? canonicalPath : void 0;
|
|
45652
|
+
};
|
|
45653
|
+
const collectTypeVersionExports = (packageJson, packageDirectory) => {
|
|
45654
|
+
const selector = packageJson.typesVersions;
|
|
45655
|
+
const publishConfig = packageJson.publishConfig;
|
|
45656
|
+
if (isRecord(publishConfig) && [
|
|
45657
|
+
"directory",
|
|
45658
|
+
"exports",
|
|
45659
|
+
"files",
|
|
45660
|
+
"name",
|
|
45661
|
+
"typesVersions"
|
|
45662
|
+
].some((field) => Object.hasOwn(publishConfig, field))) return void 0;
|
|
45663
|
+
if (typeof packageJson.name !== "string" || packageJson.name.length === 0 || packageJson.private === true || packageJson.exports !== void 0 || !isRecord(selector) || Object.keys(selector).length !== 1 || !isRecord(selector["*"]) || !Array.isArray(packageJson.files) || packageJson.files.length === 0) return void 0;
|
|
45664
|
+
const packedPaths = [];
|
|
45665
|
+
for (const item of packageJson.files) {
|
|
45666
|
+
if (typeof item !== "string") return void 0;
|
|
45667
|
+
const packedPath = resolveLiteralPackagePath(item, packageDirectory);
|
|
45668
|
+
if (!packedPath) return void 0;
|
|
45669
|
+
packedPaths.push(packedPath);
|
|
45670
|
+
}
|
|
45671
|
+
const declarationPaths = /* @__PURE__ */ new Set();
|
|
45672
|
+
for (const [subpath, targets] of Object.entries(selector["*"])) {
|
|
45673
|
+
if (!/^[\w@.-]+(?:\/[\w@.-]+)*$/.test(subpath) || subpath.split("/").some((part) => part === "." || part === "..")) continue;
|
|
45674
|
+
if (!Array.isArray(targets) || targets.length !== 1) continue;
|
|
45675
|
+
const [target] = targets;
|
|
45676
|
+
if (typeof target !== "string" || !/\.d\.[cm]?ts$/.test(target)) continue;
|
|
45677
|
+
const path = resolveLiteralPackagePath(target, packageDirectory);
|
|
45678
|
+
if (path) declarationPaths.add(path);
|
|
45679
|
+
}
|
|
45680
|
+
return {
|
|
45681
|
+
declarationPaths,
|
|
45682
|
+
packedPaths
|
|
45683
|
+
};
|
|
45684
|
+
};
|
|
45685
|
+
const isExplicitlyPackedPath = (file, directory, packedPaths) => {
|
|
45686
|
+
if (!packedPaths.some((path) => isPathInsideDirectoryOrEqual(file, path))) return false;
|
|
45687
|
+
let current = dirname(file);
|
|
45688
|
+
while (relative(directory, current) !== "") {
|
|
45689
|
+
if (existsSync(resolve(current, ".npmignore")) || existsSync(resolve(current, ".gitignore"))) return false;
|
|
45690
|
+
current = dirname(current);
|
|
45691
|
+
}
|
|
45692
|
+
return true;
|
|
45693
|
+
};
|
|
45635
45694
|
const readPackageMetadata = (packageDirectory) => {
|
|
45636
45695
|
try {
|
|
45637
45696
|
const packageJson = JSON.parse(readFileSync(resolve(packageDirectory, "package.json"), "utf-8"));
|
|
@@ -45643,7 +45702,8 @@ const readPackageMetadata = (packageDirectory) => {
|
|
|
45643
45702
|
...Object.keys(packageJson.peerDependencies ?? {})
|
|
45644
45703
|
]),
|
|
45645
45704
|
isCromwellPlugin: packageJson.cromwell?.type === "plugin",
|
|
45646
|
-
scripts: Object.values(packageJson.scripts ?? {})
|
|
45705
|
+
scripts: Object.values(packageJson.scripts ?? {}),
|
|
45706
|
+
typesVersionExports: collectTypeVersionExports(packageJson, packageDirectory)
|
|
45647
45707
|
};
|
|
45648
45708
|
} catch {
|
|
45649
45709
|
return;
|
|
@@ -45686,8 +45746,39 @@ const isReactEmailDevTemplate = (packageRelativePath, packageMetadata) => {
|
|
|
45686
45746
|
return REACT_EMAIL_TEMPLATE_EXTENSION_PATTERN.test(relativeTemplatePath);
|
|
45687
45747
|
});
|
|
45688
45748
|
};
|
|
45749
|
+
const portableTypeModuleOptions = {
|
|
45750
|
+
module: typescriptBinding.ModuleKind.NodeNext,
|
|
45751
|
+
moduleResolution: typescriptBinding.ModuleResolutionKind.NodeNext
|
|
45752
|
+
};
|
|
45753
|
+
const collectDeclaredTypeReExportKeys = (graph, declarations, consumedExportKeys) => {
|
|
45754
|
+
if (declarations.size === 0) return;
|
|
45755
|
+
for (const edge of graph.edges) {
|
|
45756
|
+
if (!edge.isReExportEdge || !edge.isTypeOnly) continue;
|
|
45757
|
+
const declaration = declarations.get(edge.source);
|
|
45758
|
+
const wrapper = graph.modules[edge.source];
|
|
45759
|
+
const target = graph.modules[edge.target];
|
|
45760
|
+
if (!declaration || !wrapper || !target || target.isAnalysisExcluded || target.isGitIgnored || target.parseErrors.length > 0) continue;
|
|
45761
|
+
const { packageDirectory, filePath, packedPaths } = declaration;
|
|
45762
|
+
const targetPath = portablePackageFilePath(target.fileId.path, packageDirectory);
|
|
45763
|
+
if (!targetPath || !isExplicitlyPackedPath(targetPath, packageDirectory, packedPaths)) continue;
|
|
45764
|
+
for (const { exportedName, originalName } of edge.reExportMappings) {
|
|
45765
|
+
if (originalName === "*" || originalName === "default") continue;
|
|
45766
|
+
const matchingWrapperExports = wrapper.exports.filter((exportInfo) => exportInfo.name === exportedName);
|
|
45767
|
+
if (matchingWrapperExports.length !== 1) continue;
|
|
45768
|
+
const [wrapperExport] = matchingWrapperExports;
|
|
45769
|
+
const specifier = wrapperExport.reExportSource;
|
|
45770
|
+
if (wrapperExport.isSynthetic || !wrapperExport.isReExport || !wrapperExport.isTypeOnly || wrapperExport.reExportOriginalName !== originalName || !specifier || !/^\.\.?\//.test(specifier)) continue;
|
|
45771
|
+
if (!isPathInsideDirectoryOrEqual(resolve(dirname(filePath), specifier), packageDirectory)) continue;
|
|
45772
|
+
const portableTarget = typescriptBinding.resolveModuleName(specifier, filePath, portableTypeModuleOptions, typescriptBinding.sys, void 0, void 0, typescriptBinding.ModuleKind.ESNext).resolvedModule?.resolvedFileName;
|
|
45773
|
+
if (!portableTarget || portablePackageFilePath(portableTarget, packageDirectory) !== targetPath) continue;
|
|
45774
|
+
const matchingExports = target.exports.filter((exportInfo) => exportInfo.name === originalName);
|
|
45775
|
+
if (matchingExports.length > 0 && matchingExports.every((exportInfo) => exportInfo.isTypeOnly && !exportInfo.isReExport)) consumedExportKeys.add(buildExportKey(target.fileId.path, originalName));
|
|
45776
|
+
}
|
|
45777
|
+
}
|
|
45778
|
+
};
|
|
45689
45779
|
const collectConventionConsumedExportKeys = (graph) => {
|
|
45690
45780
|
const consumedExportKeys = /* @__PURE__ */ new Set();
|
|
45781
|
+
const declarations = /* @__PURE__ */ new Map();
|
|
45691
45782
|
const packageMetadataByDirectory = /* @__PURE__ */ new Map();
|
|
45692
45783
|
const themeConfigPathsByPackageDirectory = /* @__PURE__ */ new Map();
|
|
45693
45784
|
const dynamicBuildConsumedExportKeysByPackageDirectory = /* @__PURE__ */ new Map();
|
|
@@ -45698,6 +45789,12 @@ const collectConventionConsumedExportKeys = (graph) => {
|
|
|
45698
45789
|
if (!packageMetadataByDirectory.has(packageDirectory)) packageMetadataByDirectory.set(packageDirectory, readPackageMetadata(packageDirectory));
|
|
45699
45790
|
const packageMetadata = packageMetadataByDirectory.get(packageDirectory);
|
|
45700
45791
|
if (!packageMetadata) continue;
|
|
45792
|
+
const typeExports = packageMetadata.typesVersionExports;
|
|
45793
|
+
if (typeExports && module.isDeclarationFile && !module.isGitIgnored && !module.isAnalysisExcluded && module.parseErrors.length === 0 && typeExports.declarationPaths.has(canonicalModuleFilePath) && portablePackageFilePath(module.fileId.path, packageDirectory) === canonicalModuleFilePath && isExplicitlyPackedPath(canonicalModuleFilePath, packageDirectory, typeExports.packedPaths)) declarations.set(module.fileId.index, {
|
|
45794
|
+
packageDirectory,
|
|
45795
|
+
filePath: canonicalModuleFilePath,
|
|
45796
|
+
packedPaths: typeExports.packedPaths
|
|
45797
|
+
});
|
|
45701
45798
|
const packageRelativePath = toPosixPath(relative(toFilesystemIdentityPath(packageDirectory), canonicalModuleFilePath));
|
|
45702
45799
|
const isNextRouteSegmentModule = hasDependency(packageMetadata, "next") && NEXT_ROUTE_SEGMENT_MODULE_PATTERN.test(packageRelativePath);
|
|
45703
45800
|
const isContentCollectionsConfig = hasDependency(packageMetadata, "@content-collections/core") && packageRelativePath === "content-collections.ts";
|
|
@@ -45712,6 +45809,7 @@ const collectConventionConsumedExportKeys = (graph) => {
|
|
|
45712
45809
|
}
|
|
45713
45810
|
for (const exportInfo of module.exports) if (isNextRouteSegmentModule && exportInfo.name === "runtime" || isCromwellPluginFrontendEntry && exportInfo.name === "getStaticProps" || dynamicBuildConsumedExportKeys?.has(buildExportKey(getFileIdentityKey(module.fileId.path), exportInfo.name)) || exportInfo.isDefault && (isContentCollectionsConfig || isReactEmailTemplate || isReferencedNextraThemeConfig)) consumedExportKeys.add(buildExportKey(module.fileId.path, exportInfo.name));
|
|
45714
45811
|
}
|
|
45812
|
+
collectDeclaredTypeReExportKeys(graph, declarations, consumedExportKeys);
|
|
45715
45813
|
return consumedExportKeys;
|
|
45716
45814
|
};
|
|
45717
45815
|
//#endregion
|
|
@@ -51883,4 +51981,4 @@ startProjectAnalysisWorker();
|
|
|
51883
51981
|
export {};
|
|
51884
51982
|
|
|
51885
51983
|
//# sourceMappingURL=project-analysis-worker.js.map
|
|
51886
|
-
//# debugId=
|
|
51984
|
+
//# debugId=670a5edf-6d7a-5b42-a22b-205573f9c498
|
|
@@ -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]="
|
|
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]="50485b7d-2c75-5557-a1a1-91a1ee6d3dc9")}catch(e){}}();
|
|
3
3
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
4
|
-
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-
|
|
5
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-
|
|
4
|
+
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BbR8vJyj.js";
|
|
5
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-BrXRMax1.js";
|
|
6
6
|
import * as http from "node:http";
|
|
7
7
|
//#region src/cli/runtime-scan/detect-local-runtime-urls.ts
|
|
8
8
|
const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
|
|
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
|
|
|
236
236
|
//#endregion
|
|
237
237
|
export { promptRuntimeScanUrl };
|
|
238
238
|
|
|
239
|
-
//# sourceMappingURL=prompt-runtime-scan-url-
|
|
240
|
-
//# debugId=
|
|
239
|
+
//# sourceMappingURL=prompt-runtime-scan-url-Buwk-3bK.js.map
|
|
240
|
+
//# debugId=50485b7d-2c75-5557-a1a1-91a1ee6d3dc9
|
|
@@ -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 { Kn as isPlainObject } 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]="920c642d-afa2-56b1-9c0b-104b1be2d05d")}catch(e){}}();
|
|
3
|
+
import { Kn as isPlainObject } from "./record-metric-CqZ2oVM5.js";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import { parseJSON5 } from "confbox";
|
|
6
6
|
//#region src/cli/utils/read-object-file.ts
|
|
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
|
|
|
20
20
|
//#endregion
|
|
21
21
|
export { readObjectFile as t };
|
|
22
22
|
|
|
23
|
-
//# sourceMappingURL=read-object-file-
|
|
24
|
-
//# debugId=
|
|
23
|
+
//# sourceMappingURL=read-object-file-_cBPiQ53.js.map
|
|
24
|
+
//# debugId=920c642d-afa2-56b1-9c0b-104b1be2d05d
|