File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ namespace ts {
374374 * Read tsconfig.json file
375375 * @param fileName The path to the config file
376376 */
377- export function readConfigFile ( fileName : string , system : System = sys ) : { config ?: any ; error ?: Diagnostic } {
377+ export function readConfigFile ( fileName : string , system : System ) : { config ?: any ; error ?: Diagnostic } {
378378 let text = "" ;
379379 try {
380380 text = system . readFile ( fileName ) ;
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ namespace ts {
216216 if ( ! cachedProgram ) {
217217 if ( configFileName ) {
218218
219- let result = readConfigFile ( configFileName ) ;
219+ let result = readConfigFile ( configFileName , sys ) ;
220220 if ( result . error ) {
221221 reportDiagnostic ( result . error ) ;
222222 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
You can’t perform that action at this time.
0 commit comments