import { built_default } from "../config/dist/esm/built.mjs";
import { relative } from "node:path";
import { ANSIColors, colorize, colorizePath } from "@intlayer/config";

//#region ../@intlayer/webpack/dist/esm/chokidar/dist/esm/utils/formatter.mjs
const formatPath = (path$1, color) => [path$1].flat().map((path$1$1) => path$1$1.startsWith("/") ? relative(built_default.content.baseDir, path$1$1) : path$1$1).map((relativePath) => color === false ? relativePath : colorizePath(relativePath, color)).join(`, `);

//#endregion
export { formatPath };
//# sourceMappingURL=formatter.mjs.map