UNPKG

@codechecks/client

Version:

Open source platform for code review automation

17 lines 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const moduleExecutor_1 = require("./moduleExecutor"); const logger_1 = require("../logger"); async function executeJs(filePath, options) { let codeChecksModule; try { codeChecksModule = require(filePath); } catch (e) { logger_1.logger.error("Error while executing CodeChecks file!"); throw e; } await moduleExecutor_1.moduleExecutor(codeChecksModule, options); } exports.executeJs = executeJs; //# sourceMappingURL=jsExecutor.js.map