const require_ESMxCJSHelpers = require('../utils/ESMxCJSHelpers.cjs');
const require_loadExternalFile = require('../loadExternalFile/loadExternalFile.cjs');

//#region ../@intlayer/cli/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs
const filterValidConfiguration = (configuration) => {
	return configuration;
};
/**
* Load the configuration file from the given path
* Example of configuration file: intlayer.config.js
*
* Accepts JSON, JS, MJS and TS files as configuration
*/
const loadConfigurationFile = (configFilePath, options) => {
	return filterValidConfiguration(require_loadExternalFile.loadExternalFileSync(configFilePath, {
		...options,
		aliases: {
			...options?.aliases,
			intlayer: require_ESMxCJSHelpers.configESMxCJSRequire.resolve("@intlayer/types")
		}
	}));
};

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