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');
55const importLocal = require ( 'import-local' ) ;
66const runCLI = require ( '../lib/bootstrap' ) ;
77const { yellow } = require ( 'colorette' ) ;
8- const { error } = require ( '../lib/utils/logger' ) ;
8+ const { error, info } = require ( '../lib/utils/logger' ) ;
99const { packageExists, promptInstallation } = require ( '@webpack-cli/package-utils' ) ;
1010
1111// Prefer the local installation of webpack-cli
@@ -20,6 +20,11 @@ if (packageExists('webpack')) {
2020} else {
2121 promptInstallation ( 'webpack' , ( ) => {
2222 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+ } ) ;
2429 return ;
2530}
You can’t perform that action at this time.
0 commit comments