The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 13:15 UTC
fix(build): keep effect out of the public-config bootstrap (#26371)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 28, 2026 at 02:01 UTC
be2ea30d2b269f1526be3fd556bc5380b4dc01b3
1 file changed
+1
-7
scripts/lib/public-config.ts
+1
-7
@@ -1,5 +1,4 @@
1
// @effect-diagnostics nodeBuiltinImport:off - Build bootstrap reads optional root env files before an Effect runtime exists.
2
-import { pipe } from "effect/Function";
2
import * as NodeFS from "node:fs";
3
import * as NodePath from "node:path";
4
import * as NodeURL from "node:url";
@@ -20,12 +19,7 @@ export interface T3CodePublicConfig {
19
20
type Environment = Readonly<Record<string, string | undefined>>;
21
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), "../../..");
23
24
export function loadRepoEnv({
25
baseEnv = process.env,