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

Function parseConfigFileWithSystem

src/cli/tsconfig.ts:39–59  ·  view source on GitHub ↗
(
    configFileName: string,
    commandLineOptions?: CompilerOptions,
    system = ts.sys
)

Source from the content-addressed store, hash-verified

37}
38
39export function parseConfigFileWithSystem(
40 configFileName: string,
41 commandLineOptions?: CompilerOptions,
42 system = ts.sys
43): ParsedCommandLine {
44 const configRootDir = path.dirname(configFileName);
45 const parsedConfigFile = ts.parseJsonSourceFileConfigFileContent(
46 ts.readJsonConfigFile(configFileName, system.readFile),
47 system,
48 configRootDir,
49 commandLineOptions,
50 configFileName
51 );
52
53 const cycleCache = new Set<string>();
54 const extendedTstlOptions = getExtendedTstlOptions(configFileName, configRootDir, cycleCache, system);
55
56 parsedConfigFile.raw.tstl = Object.assign(extendedTstlOptions, parsedConfigFile.raw.tstl ?? {});
57
58 return updateParsedConfigFile(parsedConfigFile);
59}
60
61function resolveNpmModuleConfig(
62 moduleName: string,

Callers 4

tsconfig.spec.tsFile · 0.90
executeCommandLineFunction · 0.90
transpileProjectFunction · 0.90
createConfigFileUpdaterFunction · 0.85

Calls 2

updateParsedConfigFileFunction · 0.90
getExtendedTstlOptionsFunction · 0.85

Tested by

no test coverage detected