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

Function getEmitOutDir

src/transpilation/transpiler.ts:225–233  ·  view source on GitHub ↗
(program: ts.Program)

Source from the content-addressed store, hash-verified

223}
224
225export function getEmitOutDir(program: ts.Program): string {
226 const outDir = program.getCompilerOptions().outDir;
227 if (outDir && outDir.length > 0) {
228 return path.isAbsolute(outDir) ? outDir : path.resolve(getProjectRoot(program), outDir);
229 }
230
231 // If no outDir is provided, emit in project root
232 return getProjectRoot(program);
233}
234
235export function getProjectRoot(program: ts.Program): string {
236 // Try to get the directory the tsconfig is in

Callers 3

executeLuaFunction · 0.90
getBundleResultFunction · 0.90
getEmitPathFunction · 0.85

Calls 2

getProjectRootFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected