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');
5
5
const importLocal = require ( 'import-local' ) ;
6
6
const runCLI = require ( '../lib/bootstrap' ) ;
7
7
const { yellow } = require ( 'colorette' ) ;
8
- const { error, info } = require ( '../lib/utils/logger' ) ;
8
+ const { error, success } = 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
@@ -21,7 +21,7 @@ if (packageExists('webpack')) {
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.` ) )
24
+ . then ( ( ) => success ( `${ yellow ( 'webpack' ) } was installed sucessfully.` ) )
25
25
. catch ( ( ) => {
26
26
process . exitCode = 2 ;
27
27
error ( `Action Interrupted, Please try once again or install ${ yellow ( 'webpack' ) } manually.` ) ;
Original file line number Diff line number Diff line change 1
1
const { packageExists, promptInstallation } = require ( '@webpack-cli/package-utils' ) ;
2
2
const { yellow } = require ( 'colorette' ) ;
3
- const { error, info } = require ( '../utils/logger' ) ;
3
+ const { error, success } = require ( '../utils/logger' ) ;
4
4
5
5
/**
6
6
* Resolve advanced flags
@@ -46,7 +46,7 @@ const resolveAdvanced = async (args) => {
46
46
await promptInstallation ( 'webpack-bundle-analyzer' , ( ) => {
47
47
error ( `It looks like ${ yellow ( 'webpack-bundle-analyzer' ) } is not installed.` ) ;
48
48
} )
49
- . then ( ( ) => info ( `${ yellow ( 'webpack-bundle-analyzer' ) } was installed sucessfully.` ) )
49
+ . then ( ( ) => success ( `${ yellow ( 'webpack-bundle-analyzer' ) } was installed sucessfully.` ) )
50
50
. catch ( ( ) => {
51
51
error ( `Action Interrupted, Please try once again or install ${ yellow ( 'webpack-bundle-analyzer' ) } manually.` ) ;
52
52
process . exit ( 2 ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class Compiler {
71
71
if ( typeof outputOptions . json === 'string' ) {
72
72
try {
73
73
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 } ` ) ;
75
75
} catch ( err ) {
76
76
logger . error ( err ) ;
77
77
}
You can’t perform that action at this time.
0 commit comments