From cc6cfb86bb8077d3954380e4600d7180b5cd5a15 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Mon, 23 Dec 2019 15:36:11 +0100 Subject: [PATCH] Correctly set Chalk level based on --color CLI boolean flag --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 6e18be0e9..5245306df 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -122,7 +122,7 @@ exports.run = async () => { // eslint-disable-line complexity }); updateNotifier({pkg: cli.pkg}).notify(); - const chalk = require('./chalk').set({enabled: cli.flags.color}); + const chalk = require('./chalk').set({level: cli.flags.color ? 1 : 0}); if (confError) { if (confError.parent) {