Skip to content

Commit

Permalink
updating to the latest chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Jan 12, 2020
1 parent a424225 commit 5944a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"xvfb-maybe": "^0.2.1"
},
"dependencies": {
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"import-from": "^3.0.0",
"runtime-required": "^1.0.2",
"watchboy": "^0.4.0"
Expand Down
4 changes: 2 additions & 2 deletions src/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const levels = {
};

const logger = (level, maxLevel, stream) => {
const isTTY = stream.isTTY || Number(process.env.FORCE_COLOR) === 1;
const color = new chalk.constructor({ level: isTTY ? 1 : 0 });
const isTTY = stream.isTTY || Number(process.env.FORCE_COLOR) > 1;
const color = new chalk.Instance({ level: isTTY ? 1 : 0 });

const thisLevel = levels[level];

Expand Down

0 comments on commit 5944a01

Please sign in to comment.