File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -53,29 +53,26 @@ if (!webpackCliInstalled) {
5353 output : process . stdout
5454 } ) ;
5555 questionInterface . question ( question , answer => {
56+ questionInterface . close ( ) ;
5657 switch ( answer . toLowerCase ( ) ) {
5758 case "y" :
5859 case "yes" :
5960 case "1" : {
6061 runCommand ( packageManager , options )
6162 . then ( result => {
62- questionInterface . close ( ) ;
6363 return require ( "webpack-cli" ) ; //eslint-disable-line
6464 } )
6565 . catch ( error => {
66- questionInterface . close ( ) ;
6766 console . error ( error ) ;
6867 process . exitCode = 1 ;
6968 } ) ;
7069 break ;
7170 }
7271 default : {
73- console . error ( "The CLI moved into a separate package: webpack-cli" ) ;
7472 console . error (
7573 "It needs to be installed alongside webpack to use the CLI"
7674 ) ;
7775 process . exitCode = 1 ;
78- questionInterface . close ( ) ;
7976 break ;
8077 }
8178 }
You can’t perform that action at this time.
0 commit comments