react-doctor 0.9.3 → 0.9.4-dev.0efadda

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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FrameworkToken } from "oxlint-plugin-react-doctor/core";
2
+ import fs from "node:fs";
2
3
 
3
4
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.70/node_modules/effect/dist/Types.d.ts
4
5
  /**
@@ -9833,13 +9834,13 @@ interface InspectResult {
9833
9834
  * Number of files the scan reported. Distinct from
9834
9835
  * `project.sourceFileCount` in diff / staged mode (where only changed
9835
9836
  * files are scanned). Optional so non-orchestrator constructors keep
9836
- * working; the multi-project summary falls back to
9837
+ * working; the multi-project report falls back to
9837
9838
  * `project.sourceFileCount` when absent.
9838
9839
  */
9839
9840
  scannedFileCount?: number;
9840
9841
  /**
9841
9842
  * Absolute paths of every file the scan considered. Lets the
9842
- * multi-project summary count UNIQUE files across projects instead of
9843
+ * multi-project report count UNIQUE files across projects instead of
9843
9844
  * summing per-project counts, which double-counts shared files when one
9844
9845
  * workspace package's tree is nested inside another's.
9845
9846
  */
@@ -9853,8 +9854,8 @@ interface InspectResult {
9853
9854
  /**
9854
9855
  * Wall-clock duration of the scan phase, in milliseconds. Distinct
9855
9856
  * from `elapsedMilliseconds` (which spans the full `inspect()` call
9856
- * including score fetch + rendering). Used by the multi-project
9857
- * summary to report combined scan time.
9857
+ * including score fetch + reporting). Used by the multi-project
9858
+ * report to show combined scan time.
9858
9859
  */
9859
9860
  scanElapsedMilliseconds?: number;
9860
9861
  /**
@@ -9965,6 +9966,10 @@ interface JsonReportDiffInfo {
9965
9966
  changedFileCount: number;
9966
9967
  isCurrentChanges: boolean;
9967
9968
  }
9969
+ interface JsonReportSkippedProject {
9970
+ directory: string;
9971
+ reason: "max-duration";
9972
+ }
9968
9973
  interface JsonReportProjectEntry {
9969
9974
  directory: string;
9970
9975
  project: ProjectInfo;
@@ -10045,6 +10050,8 @@ interface JsonReportV1$1 {
10045
10050
  reactDetected?: boolean;
10046
10051
  diff: JsonReportDiffInfo | null;
10047
10052
  projects: JsonReportProjectEntry[];
10053
+ /** Workspace projects that were selected but never started. */
10054
+ skippedProjects?: JsonReportSkippedProject[];
10048
10055
  /**
10049
10056
  * Flattened across `projects[].diagnostics` for convenience. Equivalent to
10050
10057
  * `projects.flatMap((project) => project.diagnostics)`.
@@ -10278,6 +10285,7 @@ interface BuildJsonReportInput {
10278
10285
  directory: string;
10279
10286
  result: InspectResult;
10280
10287
  }>;
10288
+ skippedProjects?: ReadonlyArray<JsonReportSkippedProject>;
10281
10289
  totalElapsedMilliseconds: number;
10282
10290
  /**
10283
10291
  * Present for a baseline run — `scans[].result.diagnostics` are then the
@@ -10340,7 +10348,7 @@ declare const defineConfig: (config: ReactDoctorConfig) => ReactDoctorConfig; //
10340
10348
  * React-runtime rule family was gated off for the project.
10341
10349
  */
10342
10350
  declare const hasReactRuntime: (project: ProjectInfo) => boolean; //#endregion
10343
- //#region src/utils/is-errno-exception.d.ts
10351
+ //#region src/utils/filter-paths-outside-directories.d.ts
10344
10352
  //#endregion
10345
10353
  //#region ../api/dist/index.d.ts
10346
10354
  //#region src/diagnose.d.ts
@@ -10368,5 +10376,5 @@ interface ToJsonReportOptions {
10368
10376
  }
10369
10377
  declare const toJsonReport: (result: DiagnoseResult, options: ToJsonReportOptions) => JsonReport;
10370
10378
  //#endregion
10371
- export { AmbiguousProjectError, type DiagnoseOptions, type DiagnoseProjectsInput, type DiagnoseProjectsResult, type DiagnoseResult, type Diagnostic, type DiffInfo, type JsonReport, type JsonReportDiffInfo, type JsonReportError, type JsonReportMode, type JsonReportProjectEntry, type JsonReportSummary, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, type ProjectDefinition, type ProjectInfo, ProjectNotFoundError, type ProjectResult, type ProjectResultError, type ProjectResultOk, type ReactDoctorConfig, ReactDoctorError, type ScoreResult, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
10379
+ export { AmbiguousProjectError, type DiagnoseOptions, type DiagnoseProjectsInput, type DiagnoseProjectsResult, type DiagnoseResult, type Diagnostic, type DiffInfo, type JsonReport, type JsonReportDiffInfo, type JsonReportError, type JsonReportMode, type JsonReportProjectEntry, type JsonReportSkippedProject, type JsonReportSummary, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, type ProjectDefinition, type ProjectInfo, ProjectNotFoundError, type ProjectResult, type ProjectResultError, type ProjectResultOk, type ReactDoctorConfig, ReactDoctorError, type ScoreResult, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
10372
10380
  //# sourceMappingURL=index.d.ts.map