Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions scripts/lib/public-config.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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,
Expand Down
Loading