"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NerConfigStorage = void 0;
var fs_1 = require("fs");
var path_1 = require("path");
var constants_1 = require("../../../storage/constants");
var file_utils_1 = require("../../../utils/file-utils");
var NerConfigStorage = /** @class */ (function () {
    function NerConfigStorage() {
    }
    NerConfigStorage.load = function (path) {
        return file_utils_1.readJSON(path_1.join(path, constants_1.CONFIG_FILENAME));
    };
    NerConfigStorage.save = function (path, config) {
        fs_1.mkdirSync(path, { recursive: true });
        fs_1.writeFileSync(path_1.join(path, constants_1.CONFIG_FILENAME), JSON.stringify(config));
    };
    return NerConfigStorage;
}());
exports.NerConfigStorage = NerConfigStorage;
//# sourceMappingURL=config-storage.js.map