TypeScript
fix(build): keep effect out of the public-config bootstrap (#26371)
Julius Marmingebe2ea30d2b26
diff --git a/scripts/lib/public-config.ts b/scripts/lib/public-config.tsindex aa2f285ebd1..7fe8d05386c 100644--- a/scripts/lib/public-config.ts+++ b/scripts/lib/public-config.ts@@ -1,5 +1,4 @@// @effect-diagnostics nodeBuiltinImport:off - Build bootstrap reads optional root env files before an Effect runtime exists.-import { pipe } from "effect/Function";import * as NodeFS from "node:fs";import * as NodePath from "node:path";import * as NodeURL from "node:url";@@ -20,12 +19,7 @@ export interface T3CodePublicConfig {type Environment = Readonly<Record<string, string | undefined>>;-const REPO_ROOT = pipe(- NodeURL.fileURLToPath(import.meta.url),- NodePath.dirname,- NodePath.dirname,- NodePath.dirname,-);+const REPO_ROOT = NodePath.resolve(NodeURL.fileURLToPath(import.meta.url), "../../..");export function loadRepoEnv({baseEnv = process.env,