MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / transpileFilesResult

Function transpileFilesResult

test/transpile/run.ts:6–17  ·  view source on GitHub ↗
(rootNames: string[], options: tstl.CompilerOptions)

Source from the content-addressed store, hash-verified

4import { normalizeSlashes } from "../../src/utils";
5
6export 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}

Callers 1

Calls 1

normalizeSlashesFunction · 0.90

Tested by

no test coverage detected