import { writeJsonIfChanged } from "../writeJsonIfChanged.mjs";
import { join } from "node:path";
import { mkdir } from "node:fs/promises";

//#region ../chokidar/dist/esm/writeConfiguration/index.mjs
const writeConfiguration = async (configuration) => {
	const { content } = configuration;
	const { configDir } = content;
	await mkdir(configDir, { recursive: true });
	await writeJsonIfChanged(join(configDir, "configuration.json"), configuration);
};

//#endregion
export { writeConfiguration };
//# sourceMappingURL=index.mjs.map