UNPKG

mobile-cli-lib

Version:
18 lines (17 loc) 545 B
"use strict"; var path = require("path"); var ConfigBase = (function () { function ConfigBase($fs) { this.$fs = $fs; this.DISABLE_HOOKS = false; } ConfigBase.prototype.loadConfig = function (name) { var configFileName = this.getConfigPath(name); return this.$fs.readJson(configFileName); }; ConfigBase.prototype.getConfigPath = function (filename) { return path.join(__dirname, "../../config/", filename + ".json"); }; return ConfigBase; }()); exports.ConfigBase = ConfigBase;