Skip to content

Commit 3df437e

Browse files
authored
chore: update colorette (#2983)
1 parent d496ddd commit 3df437e

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/parser": "^4.14.1",
5858
"@webpack-cli/migrate": "^1.1.2",
5959
"coffeescript": "^2.5.1",
60-
"colorette": "^2.0.11",
60+
"colorette": "^2.0.14",
6161
"concat-stream": "^2.0.0",
6262
"cz-customizable": "^6.3.0",
6363
"del-cli": "^3.0.1",

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class WebpackCLI {
4545
shouldUseColor = useColor;
4646
} else {
4747
shouldUseColor = isColorSupported;
48-
49-
// CLI may failed before parsing arguments, we should respect colors/no colors in logger
50-
if (process.argv.includes("--no-color")) {
51-
shouldUseColor = false;
52-
} else if (process.argv.includes("--color")) {
53-
shouldUseColor = true;
54-
}
5548
}
5649

5750
return { ...createColors({ useColor: shouldUseColor }), isColorSupported: shouldUseColor };

packages/webpack-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@webpack-cli/configtest": "^1.0.4",
3434
"@webpack-cli/info": "^1.3.0",
3535
"@webpack-cli/serve": "^1.5.2",
36-
"colorette": "^2.0.11",
36+
"colorette": "^2.0.14",
3737
"commander": "^7.0.0",
3838
"execa": "^5.0.0",
3939
"fastest-levenshtein": "^1.0.12",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ colorette@^1.2.1, colorette@^1.2.2:
33383338
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
33393339
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
33403340

3341-
colorette@^2.0.11:
3341+
colorette@^2.0.14:
33423342
version "2.0.14"
33433343
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.14.tgz#1629bb27a13cd719ff37d66bc341234af564122e"
33443344
integrity sha512-TLcu0rCLNjDIdKGLGqMtPEAOAZmavC1QCX4mEs3P0mrA/DDoU/tA+Y4UQK/862FkX2TTlbyVIkREZNbf7Y9YwA==

0 commit comments

Comments
 (0)