File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -1788,31 +1788,25 @@ namespace ts {
1788
1788
1789
1789
let reportQueue = true ;
1790
1790
let successfulProjects = 0 ;
1791
- let errorProjects = 0 ;
1792
1791
while ( true ) {
1793
1792
const invalidatedProject = getNextInvalidatedProject ( state , buildOrder , reportQueue ) ;
1794
1793
if ( ! invalidatedProject ) break ;
1795
1794
reportQueue = false ;
1796
1795
invalidatedProject . done ( cancellationToken ) ;
1797
- if ( state . diagnostics . has ( invalidatedProject . projectPath ) ) {
1798
- errorProjects ++ ;
1799
- }
1800
- else {
1801
- successfulProjects ++ ;
1802
- }
1796
+ if ( ! state . diagnostics . has ( invalidatedProject . projectPath ) ) successfulProjects ++ ;
1803
1797
}
1804
1798
1805
1799
disableCache ( state ) ;
1806
1800
reportErrorSummary ( state , buildOrder ) ;
1807
1801
startWatching ( state , buildOrder ) ;
1808
1802
1809
1803
return isCircularBuildOrder ( buildOrder ) ?
1810
- ExitStatus . ProjectReferenceCycle_OutputsSkipped :
1811
- errorProjects ?
1812
- successfulProjects ?
1813
- ExitStatus . DiagnosticsPresent_OutputsGenerated :
1814
- ExitStatus . DiagnosticsPresent_OutputsSkipped :
1815
- ExitStatus . Success ;
1804
+ ExitStatus . ProjectReferenceCycle_OutputsSkipped
1805
+ : ! buildOrder . some ( p => state . diagnostics . has ( toResolvedConfigFilePath ( state , p ) ) ) ?
1806
+ ExitStatus . Success
1807
+ : successfulProjects ?
1808
+ ExitStatus . DiagnosticsPresent_OutputsGenerated
1809
+ : ExitStatus . DiagnosticsPresent_OutputsSkipped ;
1816
1810
}
1817
1811
1818
1812
function clean ( state : SolutionBuilderState , project ?: string , onlyReferences ?: boolean ) {
You can’t perform that action at this time.
0 commit comments