fix: add ES module compatibility to configure-fork.ts using fileURLToPath

This commit is contained in:
Wayne Sutton
2025-12-31 12:36:55 -08:00
parent db960ec163
commit 86d97e80eb
9 changed files with 280 additions and 4 deletions

View File

@@ -21,6 +21,11 @@
import * as fs from "fs";
import * as path from "path";
import { fileURLToPath } from "url";
// ES module equivalent of __dirname
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Configuration interface matching fork-config.json
interface ForkConfig {