@@ -56,21 +56,19 @@ export async function buildFinish(config: d.Config, compilerCtx: d.CompilerCtx,
56
56
compilerCtx . hasSuccessfulBuild = true ;
57
57
}
58
58
59
- if ( ! aborted || ( aborted && ! compilerCtx . hasSuccessfulBuild ) ) {
60
- // print out the time it took to build
61
- // and add the duration to the build results
62
- if ( ! buildCtx . hasPrintedResults ) {
63
- buildCtx . timeSpan . finish ( `${ buildText } ${ buildStatus } ${ watchText } ` , statusColor , true , true ) ;
64
- buildCtx . hasPrintedResults = true ;
65
-
66
- // write the build stats
67
- await generateBuildStats ( config , compilerCtx , buildCtx , buildCtx . buildResults ) ;
68
- }
59
+ // print out the time it took to build
60
+ // and add the duration to the build results
61
+ if ( ! buildCtx . hasPrintedResults ) {
62
+ buildCtx . timeSpan . finish ( `${ buildText } ${ buildStatus } ${ watchText } ` , statusColor , true , true ) ;
63
+ buildCtx . hasPrintedResults = true ;
69
64
70
- // emit a buildFinish event for anyone who cares
71
- compilerCtx . events . emit ( 'buildFinish' , buildCtx . buildResults ) ;
65
+ // write the build stats
66
+ await generateBuildStats ( config , compilerCtx , buildCtx , buildCtx . buildResults ) ;
72
67
}
73
68
69
+ // emit a buildFinish event for anyone who cares
70
+ compilerCtx . events . emit ( 'buildFinish' , buildCtx . buildResults ) ;
71
+
74
72
// write all of our logs to disk if config'd to do so
75
73
// do this even if there are errors or not the active build
76
74
config . logger . writeLogs ( buildCtx . isRebuild ) ;
0 commit comments