@boll/cli
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -14,2 +14,3 @@ import { Logger } from "@boll/core"; | ||
private buildSuite; | ||
private getConfig; | ||
} |
@@ -155,3 +155,3 @@ "use strict"; | ||
config = new core_1.Config(core_1.ConfigRegistryInstance, core_1.RuleRegistryInstance, this.logger); | ||
config.load(require(fullConfigPath)); | ||
config.load(this.getConfig(fullConfigPath)); | ||
return [4 /*yield*/, config.buildSuite()]; | ||
@@ -163,4 +163,8 @@ case 2: return [2 /*return*/, _a.sent()]; | ||
}; | ||
Cli.prototype.getConfig = function (filename) { | ||
var contents = fs.readFileSync((0, path_1.resolve)(filename), "utf-8"); | ||
return JSON.parse(contents); | ||
}; | ||
return Cli; | ||
}()); | ||
exports.Cli = Cli; |
@@ -51,3 +51,3 @@ { | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.3.0" | ||
} |
33218
663
5