const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.cjs');
const require_normalizePath = require('../../../../../../../config/dist/esm/utils/normalizePath.cjs');
let node_fs = require("node:fs");
let fast_glob = require("fast-glob");
fast_glob = require_rolldown_runtime.__toESM(fast_glob);

//#region ../@intlayer/cli/dist/esm/chokidar/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs
/**
* This function generates a list of dictionaries in the main directory
*/
const getBuiltDictionariesPath = async (configuration) => {
	const { dictionariesDir, mainDir } = configuration.content;
	if (!(0, node_fs.existsSync)(mainDir)) (0, node_fs.mkdirSync)(mainDir, { recursive: true });
	return await (0, fast_glob.default)(`${require_normalizePath.normalizePath(dictionariesDir)}/**/*.json`);
};

//#endregion
exports.getBuiltDictionariesPath = getBuiltDictionariesPath;
//# sourceMappingURL=getBuiltDictionariesPath.cjs.map