BREAKING(core): remove Mode type (#2884)

It doesn't seem like it deserves to be it's own type. It can just be an
interface property.
This commit is contained in:
Asher Gomez
2025-05-05 08:40:34 +02:00
committed by GitHub
parent 49a9c69d9e
commit e0ca9423d9
3 changed files with 2 additions and 8 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
import * as path from "@std/path";
import type { Mode } from "./runtime/server/mod.ts";
export interface FreshConfig {
root?: string;
@@ -30,9 +29,9 @@ export interface ResolvedFreshConfig {
basePath: string;
staticDir: string;
/**
* Tells you in which mode Fresh is currently running in.
* The mode Fresh can run in.
*/
mode: Mode;
mode: "development" | "production";
}
export function parseRootPath(root: string, cwd: string): string {