import { join } from "node:path";
import { writeGeneratedFile } from "../typegen/write-generated-file.js";
export async function writeRouteInspectFile(rootDir, payload) {
    const filePath = join(rootDir, ".vext", "inspect", "routes.json");
    const content = `${JSON.stringify(payload, null, 2)}\n`;
    return writeGeneratedFile(filePath, content);
}
