File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 24
24
"@angular-devkit/core" : " 0.0.0" ,
25
25
"enhanced-resolve" : " 4.1.1" ,
26
26
"rxjs" : " 6.5.3" ,
27
- "tree-kill" : " 1.2.1" ,
28
27
"webpack-sources" : " 1.4.3"
29
28
},
30
29
"peerDependencies" : {
Original file line number Diff line number Diff line change @@ -83,8 +83,6 @@ import {
83
83
} from './webpack' ;
84
84
import { WebpackInputHost } from './webpack-input-host' ;
85
85
86
- const treeKill = require ( 'tree-kill' ) ;
87
-
88
86
export class AngularCompilerPlugin {
89
87
private _options : AngularCompilerPluginOptions ;
90
88
@@ -570,8 +568,10 @@ export class AngularCompilerPlugin {
570
568
}
571
569
572
570
private _killForkedTypeChecker ( ) {
573
- if ( this . _typeCheckerProcess && this . _typeCheckerProcess . pid ) {
574
- treeKill ( this . _typeCheckerProcess . pid , 'SIGTERM' ) ;
571
+ if ( this . _typeCheckerProcess && ! this . _typeCheckerProcess . killed ) {
572
+ try {
573
+ this . _typeCheckerProcess . kill ( ) ;
574
+ } catch { }
575
575
this . _typeCheckerProcess = null ;
576
576
}
577
577
}
You can’t perform that action at this time.
0 commit comments