react-doctor 0.7.2-dev.aa519e5 → 0.7.2-dev.cb8f726

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,3 +1,5 @@
1
+ import { FrameworkToken } from "oxlint-plugin-react-doctor";
2
+
1
3
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.70/node_modules/effect/dist/Types.d.ts
2
4
  /**
3
5
  * Function-type alias encoding covariant variance for a phantom type
@@ -9525,7 +9527,7 @@ interface Diagnostic {
9525
9527
  }
9526
9528
  //#endregion
9527
9529
  //#region src/types/project-info.d.ts
9528
- type Framework = "nextjs" | "vite" | "cra" | "remix" | "gatsby" | "expo" | "react-native" | "tanstack-start" | "preact" | "unknown";
9530
+ type Framework = FrameworkToken;
9529
9531
  interface ProjectInfo {
9530
9532
  rootDirectory: string;
9531
9533
  projectName: string;
@@ -9617,6 +9619,16 @@ interface ProjectInfo {
9617
9619
  * the config is unparseable — the safe default is to keep the rule active.
9618
9620
  */
9619
9621
  isPreES2023Target: boolean;
9622
+ /**
9623
+ * `true` when a Next.js project sets `output: "export"` in `next.config.*`
9624
+ * (static HTML export — no request-time server). Drives the
9625
+ * `nextjs:static-export` capability and excludes the project from
9626
+ * `server-actions`, so rules stop recommending server-only fixes (server
9627
+ * `redirect()`, middleware, Server Actions) that don't exist under a static
9628
+ * export. `false` for non-Next projects, when no config sets it, or when the
9629
+ * config is unparseable — the safe default keeps server-aware advice active.
9630
+ */
9631
+ isStaticExport: boolean;
9620
9632
  sourceFileCount: number;
9621
9633
  }
9622
9634
  //#endregion
@@ -10025,7 +10037,7 @@ declare class AmbiguousProjectError extends Error {
10025
10037
  constructor(directory: string, candidates: readonly string[], options?: ErrorOptions);
10026
10038
  }
10027
10039
  declare const isProjectDiscoveryError: (value: unknown) => value is ProjectNotFoundError | NoReactDependencyError | PackageJsonNotFoundError | NotADirectoryError | AmbiguousProjectError; //#endregion
10028
- //#region src/project-info/utils/is-directory.d.ts
10040
+ //#region src/project-info/fs-utils.d.ts
10029
10041
  //#endregion
10030
10042
  //#region src/errors.d.ts
10031
10043
  declare const OxlintUnavailable_base: Class<OxlintUnavailable, TaggedStruct<"OxlintUnavailable", {