Skip to content

Commit 5b249b9

Browse files
committed
Correctly set Chalk level based on --color CLI boolean flag
1 parent cdb5019 commit 5b249b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ exports.run = async () => { // eslint-disable-line complexity
122122
});
123123

124124
updateNotifier({pkg: cli.pkg}).notify();
125-
const chalk = require('./chalk').set({enabled: cli.flags.color});
125+
const chalk = require('./chalk').set({level: cli.flags.color ? 1 : 0});
126126

127127
if (confError) {
128128
if (confError.parent) {

0 commit comments

Comments
 (0)