Skip to content

Commit 75f706b

Browse files
committed
misc(revert): revert supports-color usage
1 parent 7ef13ef commit 75f706b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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").stdout;
40+
outputOptions.colors = require("supports-color");
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").stdout;
83+
return require("supports-color");
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").stdout;
321+
outputOptions.colors = require("supports-color");
322322

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

lib/migrate/__snapshots__/index.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`transform should not transform if no transformations defined:
3+
exports[`
44
module.exports = {
55
devtool: 'eval',
66
entry: [

0 commit comments

Comments
 (0)