import path from "node:path"; import { fileURLToPath } from "node:url"; export const repoRoot = (): string => { const fromEnv = process.env.SMART_IDE_MONOREPO_ROOT?.trim(); if (fromEnv) { return path.resolve(fromEnv); } const here = path.dirname(fileURLToPath(import.meta.url)); return path.resolve(here, "..", "..", ".."); };