File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -340,14 +340,15 @@ class ForkTsCheckerWebpackPlugin {
340
340
this . killService ( ) ;
341
341
} ;
342
342
343
- const done = ( ) => {
343
+ const doneOrFailed = ( ) => {
344
344
if ( ! this . isWatching ) {
345
345
this . killService ( ) ;
346
346
}
347
347
} ;
348
348
349
349
this . compiler . hooks . watchClose . tap ( checkerPluginName , watchClose ) ;
350
- this . compiler . hooks . done . tap ( checkerPluginName , done ) ;
350
+ this . compiler . hooks . done . tap ( checkerPluginName , doneOrFailed ) ;
351
+ this . compiler . hooks . failed . tap ( checkerPluginName , doneOrFailed ) ;
351
352
352
353
process . on ( 'exit' , ( ) => {
353
354
this . killService ( ) ;
@@ -610,11 +611,10 @@ class ForkTsCheckerWebpackPlugin {
610
611
this . logger . error (
611
612
chalk . red (
612
613
'Type checking and linting interrupted - If running in a docker container, this may be caused ' +
613
- ' by the container running out of memory. If so, try increasing the container\ 's memory limit ' +
614
+ " by the container running out of memory. If so, try increasing the container's memory limit " +
614
615
'or lowering the memoryLimit value in the ForkTsCheckerWebpackPlugin configuration.'
615
616
)
616
617
) ;
617
-
618
618
} else {
619
619
this . logger . error (
620
620
chalk . red (
You can’t perform that action at this time.
0 commit comments