#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typescript_1 = require("typescript");
const findTsConfig_1 = require("./findTsConfig");
const typeCheckFiles_1 = require("./typeCheckFiles");
const cwd = process.argv[2];
const files = process.argv.slice(3);
const { compilerOptions } = findTsConfig_1.findTsConfig(cwd);
const program = typescript_1.createProgram(files, compilerOptions);
const result = typeCheckFiles_1.typeCheckFiles(program);
if (result === '') {
    process.exit(0);
}
console.error(result);
process.exit(1);
//# sourceMappingURL=typeCheckCli.js.map