Skip to content

Commit 3e0abb1

Browse files
authored
chore: use logger.success (#1886)
1 parent 11ca41c commit 3e0abb1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/webpack-cli/bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require('v8-compile-cache');
55
const importLocal = require('import-local');
66
const runCLI = require('../lib/bootstrap');
77
const { yellow } = require('colorette');
8-
const { error, info } = require('../lib/utils/logger');
8+
const { error, success } = require('../lib/utils/logger');
99
const { 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.`);

packages/webpack-cli/lib/groups/resolveAdvanced.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { packageExists, promptInstallation } = require('@webpack-cli/package-utils');
22
const { 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);

packages/webpack-cli/lib/utils/Compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)