Skip to content

Commit be2ea30

Browse files
fix(build): keep effect out of the public-config bootstrap (#26371)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 975b3dc commit be2ea30

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎scripts/lib/public-config.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @effect-diagnostics nodeBuiltinImport:off - Build bootstrap reads optional root env files before an Effect runtime exists.
2-
import { pipe } from "effect/Function";
32
import * as NodeFS from "node:fs";
43
import * as NodePath from "node:path";
54
import * as NodeURL from "node:url";
@@ -20,12 +19,7 @@ export interface T3CodePublicConfig {
2019

2120
type Environment = Readonly<Record<string, string | undefined>>;
2221

23-
const REPO_ROOT = pipe(
24-
NodeURL.fileURLToPath(import.meta.url),
25-
NodePath.dirname,
26-
NodePath.dirname,
27-
NodePath.dirname,
28-
);
22+
const REPO_ROOT = NodePath.resolve(NodeURL.fileURLToPath(import.meta.url), "../../..");
2923

3024
export function loadRepoEnv({
3125
baseEnv = process.env,

0 commit comments

Comments
 (0)