const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
const require_utils_checkAccess = require('./utils/checkAccess.cjs');
let __intlayer_api = require("@intlayer/api");
let __intlayer_config = require("@intlayer/config");

//#region src/pushConfig.ts
const pushConfig = async (options) => {
	const config = (0, __intlayer_config.getConfiguration)(options?.configOptions);
	const appLogger = (0, __intlayer_config.getAppLogger)(config, { config: { prefix: "" } });
	if (!await require_utils_checkAccess.checkCMSAuth(config)) return;
	const getDictionariesKeysResult = await (0, __intlayer_api.getIntlayerAPIProxy)(void 0, config).project.pushProjectConfiguration(config);
	if (!getDictionariesKeysResult.data) throw new Error("Error pushing project configuration");
	appLogger("Project configuration pushed successfully");
	appLogger(JSON.stringify(getDictionariesKeysResult.data, null, 2));
};

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