const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
let __intlayer_chokidar = require("@intlayer/chokidar");
let __intlayer_config = require("@intlayer/config");

//#region src/watch.ts
/**
* 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 = (0, __intlayer_config.getAppLogger)((0, __intlayer_config.getConfiguration)(options?.configOptions));
	if (options?.with) (0, __intlayer_chokidar.runParallel)(options.with).result.catch(() => {});
	appLogger("Watching Intlayer content declarations");
	(0, __intlayer_chokidar.watch)({
		persistent: true,
		skipPrepare: options?.skipPrepare ?? false
	});
};

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