@iceworks/doctor
Version:
Analyse and running codemods over react/rax projects, troubleshooting and automatically fixing errors
14 lines (13 loc) • 604 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var fs = require("fs-extra");
var path_1 = require("path");
var getMaintainabilityReports_1 = require("./getMaintainabilityReports");
var config_1 = require("../../config");
var tempFileDir = process.argv.slice(2)[0].split(' ')[0];
function run() {
var files = fs.readJSONSync(path_1.join(tempFileDir, config_1.default.tmpFiles.files));
var result = getMaintainabilityReports_1.default(files);
fs.writeFileSync(path_1.join(tempFileDir, config_1.default.tmpFiles.report.escomplex), JSON.stringify(result));
}
run();