const require_index = require('./chokidar/dist/esm/utils/runParallel/index.cjs');
const require_logger = require('../../../config/dist/esm/logger.cjs');
const require_getConfiguration = require('../../../config/dist/esm/configFile/getConfiguration.cjs');
const require_watcher = require('./chokidar/dist/esm/watcher.cjs');

//#region ../@intlayer/cli/dist/esm/watch.mjs
/**
* Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.
* Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
*/
const watchContentDeclaration = async (options) => {
	const appLogger = require_logger.getAppLogger(require_getConfiguration.getConfiguration(options?.configOptions));
	if (options?.with) require_index.runParallel(options.with).result.catch(() => {});
	appLogger("Watching Intlayer content declarations");
	require_watcher.watch$1({
		persistent: true,
		skipPrepare: options?.skipPrepare ?? false
	});
};

//#endregion
exports.watchContentDeclaration = watchContentDeclaration;
//# sourceMappingURL=watch.cjs.map