UNPKG

loose-ts-check

Version:

Run TS type-check and ignore certain errors in some files

20 lines (19 loc) 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs_1 = require("yargs"); const cli_1 = require("./cli"); const options = (0, yargs_1.default)(process.argv) .options(cli_1.cliOptionsConfig) .parseSync(); const cliDependencies = (0, cli_1.getCliDependencies)(options); (0, cli_1.getProgramInput)() .then((programInput) => (0, cli_1.program)(cliDependencies, programInput)) .then((result) => { if (result === null || result === void 0 ? void 0 : result.error) { process.exit(1); } }) .catch((error) => { console.error('Unknown error', error); process.exit(1); });