File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ require('v8-compile-cache');
5
5
const importLocal = require ( 'import-local' ) ;
6
6
const runCLI = require ( '../lib/bootstrap' ) ;
7
7
const { yellow } = require ( 'colorette' ) ;
8
- const { error } = require ( '../lib/utils/logger' ) ;
8
+ const { error, info } = require ( '../lib/utils/logger' ) ;
9
9
const { packageExists, promptInstallation } = require ( '@webpack-cli/package-utils' ) ;
10
10
11
11
// Prefer the local installation of webpack-cli
@@ -20,6 +20,11 @@ if (packageExists('webpack')) {
20
20
} else {
21
21
promptInstallation ( 'webpack' , ( ) => {
22
22
error ( `It looks like ${ yellow ( 'webpack' ) } is not installed.` ) ;
23
- } ) ;
23
+ } )
24
+ . then ( ( ) => info ( `${ yellow ( 'webpack' ) } was installed sucessfully.` ) )
25
+ . catch ( ( ) => {
26
+ process . exitCode = 2 ;
27
+ error ( `Action Interrupted, Please try once again or install ${ yellow ( 'webpack' ) } manually.` ) ;
28
+ } ) ;
24
29
return ;
25
30
}
You can’t perform that action at this time.
0 commit comments