@@ -69,7 +69,7 @@ namespace ts {
69
69
}
70
70
}
71
71
72
- function createReportErrorSummary ( options : CompilerOptions ) : ReportEmitErrorSummary | undefined {
72
+ function createReportErrorSummary ( sys : TscCompileSystem , options : CompilerOptions ) : ReportEmitErrorSummary | undefined {
73
73
return options . pretty ?
74
74
errorCount => sys . write ( getErrorSummaryText ( errorCount , sys . newLine ) ) :
75
75
undefined ;
@@ -93,7 +93,7 @@ namespace ts {
93
93
program ,
94
94
reportDiagnostic ,
95
95
s => sys . write ( s + sys . newLine ) ,
96
- createReportErrorSummary ( options )
96
+ createReportErrorSummary ( sys , options )
97
97
) ;
98
98
baselineBuildInfo ( [ config ] , sys . vfs , sys . writtenFiles ) ;
99
99
return sys . exit ( exitStatus ) ;
@@ -109,7 +109,7 @@ namespace ts {
109
109
configFileParsingDiagnostics : getConfigFileParsingDiagnostics ( config ) ,
110
110
projectReferences,
111
111
reportDiagnostic,
112
- reportErrorSummary : createReportErrorSummary ( options ) ,
112
+ reportErrorSummary : createReportErrorSummary ( sys , options ) ,
113
113
} ) ;
114
114
baselineBuildInfo ( [ config ] , sys . vfs , sys . writtenFiles ) ;
115
115
return sys . exit ( exitCode ) ;
@@ -131,7 +131,7 @@ namespace ts {
131
131
/*createProgram*/ undefined ,
132
132
reportDiagnostic ,
133
133
createBuilderStatusReporter ( sys , buildOptions . pretty ) ,
134
- createReportErrorSummary ( buildOptions )
134
+ createReportErrorSummary ( sys , buildOptions )
135
135
) ;
136
136
fakes . patchSolutionBuilderHost ( buildHost , sys ) ;
137
137
const builder = createSolutionBuilder ( buildHost , projects , buildOptions ) ;
0 commit comments