(rootNames: string[], options: tstl.CompilerOptions)
| 4 | import { normalizeSlashes } from "../../src/utils"; |
| 5 | |
| 6 | export function transpileFilesResult(rootNames: string[], options: tstl.CompilerOptions) { |
| 7 | options.skipLibCheck = true; |
| 8 | options.types = []; |
| 9 | |
| 10 | const emittedFiles: ts.OutputFile[] = []; |
| 11 | const { diagnostics } = tstl.transpileFiles(rootNames, options, (fileName, text, writeByteOrderMark) => { |
| 12 | const name = normalizeSlashes(path.relative(__dirname, fileName)); |
| 13 | emittedFiles.push({ name, text, writeByteOrderMark }); |
| 14 | }); |
| 15 | |
| 16 | return { diagnostics, emittedFiles }; |
| 17 | } |
no test coverage detected