File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ module.exports = async function startApp(appPath) {
1010 await execa ( 'yarn' , [ 'install' ] , execOpts ) ;
1111
1212 console . log ( 'starting serve' ) ;
13+
14+ // `yarn` has a bug where even if the process gets killed, it leaves the child process (ember in this case) orphaned.
15+ // Hence we are using `ember` directly here to overcome the above shortcoming and ensure that the ember process is always killed
16+ // cleanly.
1317 const emberServe = execa ( 'ember' , [ 'serve' ] , execOpts ) ;
1418 emberServe . stdout . pipe ( process . stdout ) ;
1519
@@ -29,9 +33,6 @@ module.exports = async function startApp(appPath) {
2933 } catch ( e ) {
3034 // Process is allowed to exit with a non zero exit status code.
3135 }
32- if ( ! this . killed ) {
33- throw new Error ( `the process ${ this . pid } wasn't killed.` ) ;
34- }
3536 } ;
3637
3738 return { emberServe } ;
You can’t perform that action at this time.
0 commit comments