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/chokidar/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs
/**
* This function generates a list of dictionaries in the main directory
*/
const getBuiltRemoteDictionariesPath = async (configuration) => {
	const { remoteDictionariesDir, mainDir } = configuration.content;
	if (!(0, node_fs.existsSync)(mainDir)) (0, node_fs.mkdirSync)(mainDir, { recursive: true });
	return fast_glob.default.sync(`${require_normalizePath.normalizePath(remoteDictionariesDir)}/**/*.json`);
};

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