Skip to content

Commit 4566fde

Browse files
committed
chore(refactor): update supports-color usage
1 parent 3c4e6f7 commit 4566fde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/process-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function processOptions(yargs, argv) {
3737
});
3838

3939
if (typeof outputOptions.colors === "undefined")
40-
outputOptions.colors = require("supports-color");
40+
outputOptions.colors = require("supports-color").stdout;
4141

4242
ifArg("sort-modules-by", function(value) {
4343
outputOptions.modulesSort = value;

bin/webpack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
type: "boolean",
8181
alias: "colors",
8282
default: function supportsColor() {
83-
return require("supports-color");
83+
return require("supports-color").stdout;
8484
},
8585
group: DISPLAY_GROUP,
8686
describe: "Enables/Disables colors on the console"
@@ -318,7 +318,7 @@
318318
});
319319

320320
if (typeof outputOptions.colors === "undefined")
321-
outputOptions.colors = require("supports-color");
321+
outputOptions.colors = require("supports-color").stdout;
322322

323323
ifArg("sort-modules-by", function(value) {
324324
outputOptions.modulesSort = value;

0 commit comments

Comments
 (0)