@@ -69,7 +69,7 @@ namespace ts {
6969 }
7070 }
7171
72- function createReportErrorSummary ( options : CompilerOptions ) : ReportEmitErrorSummary | undefined {
72+ function createReportErrorSummary ( sys : TscCompileSystem , options : CompilerOptions ) : ReportEmitErrorSummary | undefined {
7373 return options . pretty ?
7474 errorCount => sys . write ( getErrorSummaryText ( errorCount , sys . newLine ) ) :
7575 undefined ;
@@ -93,7 +93,7 @@ namespace ts {
9393 program ,
9494 reportDiagnostic ,
9595 s => sys . write ( s + sys . newLine ) ,
96- createReportErrorSummary ( options )
96+ createReportErrorSummary ( sys , options )
9797 ) ;
9898 baselineBuildInfo ( [ config ] , sys . vfs , sys . writtenFiles ) ;
9999 return sys . exit ( exitStatus ) ;
@@ -109,7 +109,7 @@ namespace ts {
109109 configFileParsingDiagnostics : getConfigFileParsingDiagnostics ( config ) ,
110110 projectReferences,
111111 reportDiagnostic,
112- reportErrorSummary : createReportErrorSummary ( options ) ,
112+ reportErrorSummary : createReportErrorSummary ( sys , options ) ,
113113 } ) ;
114114 baselineBuildInfo ( [ config ] , sys . vfs , sys . writtenFiles ) ;
115115 return sys . exit ( exitCode ) ;
@@ -131,7 +131,7 @@ namespace ts {
131131 /*createProgram*/ undefined ,
132132 reportDiagnostic ,
133133 createBuilderStatusReporter ( sys , buildOptions . pretty ) ,
134- createReportErrorSummary ( buildOptions )
134+ createReportErrorSummary ( sys , buildOptions )
135135 ) ;
136136 fakes . patchSolutionBuilderHost ( buildHost , sys ) ;
137137 const builder = createSolutionBuilder ( buildHost , projects , buildOptions ) ;
0 commit comments