import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs"; import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; const __dirname = dirname(fileURLToPath(import.meta.url)); const consoleRoot = join(__dirname, ".."); const bad = "-cyc 0) { console.log(`[patch-mermaid-dagre] patched ${patched} file(s)`); }