(
configFileName: string,
commandLineOptions?: CompilerOptions,
system = ts.sys
)
| 37 | } |
| 38 | |
| 39 | export 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 | |
| 61 | function resolveNpmModuleConfig( |
| 62 | moduleName: string, |
no test coverage detected