MCPcopy Create free account
hub / github.com/cevek/ttypescript / readConfig

Function readConfig

packages/ttypescript/src/patchCreateProgram.ts:140–146  ·  view source on GitHub ↗
(tsm: typeof ts, configFileNamePath: string, projectDir: string)

Source from the content-addressed store, hash-verified

138}
139
140function readConfig(tsm: typeof ts, configFileNamePath: string, projectDir: string) {
141 const result = tsm.readConfigFile(configFileNamePath, tsm.sys.readFile);
142 if (result.error) {
143 throw new Error('tsconfig.json error: ' + result.error.messageText);
144 }
145 return tsm.parseJsonConfigFileContent(result.config, tsm.sys, projectDir, undefined, configFileNamePath);
146}
147
148function preparePluginsFromCompilerOptions(plugins: any): PluginConfig[] {
149 if (!plugins) return [];

Callers 1

getConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…