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:
+2
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user