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

Function transpileProject

src/transpilation/index.ts:29–40  ·  view source on GitHub ↗
(
    configFileName: string,
    optionsToExtend?: CompilerOptions,
    writeFile?: ts.WriteFileCallback
)

Source from the content-addressed store, hash-verified

27}
28
29export function transpileProject(
30 configFileName: string,
31 optionsToExtend?: CompilerOptions,
32 writeFile?: ts.WriteFileCallback
33): EmitResult {
34 const parseResult = parseConfigFileWithSystem(configFileName, optionsToExtend);
35 if (parseResult.errors.length > 0) {
36 return { diagnostics: parseResult.errors, emitSkipped: true };
37 }
38
39 return transpileFiles(parseResult.fileNames, parseResult.options, writeFile);
40}
41
42const libCache: { [key: string]: ts.SourceFile } = {};
43

Callers 1

getLuaResultMethod · 0.90

Calls 2

transpileFilesFunction · 0.85

Tested by

no test coverage detected