File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
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, info } = require ( '../lib/utils/logger' ) ;
8+ const { error, success } = require ( '../lib/utils/logger' ) ;
99const { packageExists, promptInstallation } = require ( '@webpack-cli/package-utils' ) ;
1010
1111// Prefer the local installation of webpack-cli
@@ -21,7 +21,7 @@ if (packageExists('webpack')) {
2121 promptInstallation ( 'webpack' , ( ) => {
2222 error ( `It looks like ${ yellow ( 'webpack' ) } is not installed.` ) ;
2323 } )
24- . then ( ( ) => info ( `${ yellow ( 'webpack' ) } was installed sucessfully.` ) )
24+ . then ( ( ) => success ( `${ yellow ( 'webpack' ) } was installed sucessfully.` ) )
2525 . catch ( ( ) => {
2626 process . exitCode = 2 ;
2727 error ( `Action Interrupted, Please try once again or install ${ yellow ( 'webpack' ) } manually.` ) ;
Original file line number Diff line number Diff line change 11const { packageExists, promptInstallation } = require ( '@webpack-cli/package-utils' ) ;
22const { yellow } = require ( 'colorette' ) ;
3- const { error, info } = require ( '../utils/logger' ) ;
3+ const { error, success } = require ( '../utils/logger' ) ;
44
55/**
66 * Resolve advanced flags
@@ -46,7 +46,7 @@ const resolveAdvanced = async (args) => {
4646 await promptInstallation ( 'webpack-bundle-analyzer' , ( ) => {
4747 error ( `It looks like ${ yellow ( 'webpack-bundle-analyzer' ) } is not installed.` ) ;
4848 } )
49- . then ( ( ) => info ( `${ yellow ( 'webpack-bundle-analyzer' ) } was installed sucessfully.` ) )
49+ . then ( ( ) => success ( `${ yellow ( 'webpack-bundle-analyzer' ) } was installed sucessfully.` ) )
5050 . catch ( ( ) => {
5151 error ( `Action Interrupted, Please try once again or install ${ yellow ( 'webpack-bundle-analyzer' ) } manually.` ) ;
5252 process . exit ( 2 ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class Compiler {
7171 if ( typeof outputOptions . json === 'string' ) {
7272 try {
7373 writeFileSync ( outputOptions . json , JSONStats ) ;
74- logger . info ( `stats are successfully stored as json to ${ outputOptions . json } ` ) ;
74+ logger . success ( `stats are successfully stored as json to ${ outputOptions . json } ` ) ;
7575 } catch ( err ) {
7676 logger . error ( err ) ;
7777 }
You can’t perform that action at this time.
0 commit comments