"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigLoader = void 0;
const path = require("path");
const utils_1 = require("./utils");
// TODO:  If this gets more useful or bulletproof, consider promoting this @codiac.io/codiac-common?
class ConfigLoader {
    constructor(configFolderPath, fileName) {
        this.configFolderPath = configFolderPath;
        this.fileName = fileName;
    }
    load() {
        let pathName = path.posix.join(this.configFolderPath, this.fileName);
        let cfg = utils_1.utils.deserializeJsonFile(pathName);
        return cfg;
    }
}
exports.ConfigLoader = ConfigLoader;
//# sourceMappingURL=config-loader.js.map