Skip to content

Commit

Permalink
delete FORCE_COLOR/NO_COLOR rather than setting to '0'
Browse files Browse the repository at this point in the history
Node gets whiny about it if it's set at all.
  • Loading branch information
isaacs committed Mar 26, 2021
1 parent 564e96f commit 315a921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/run.js
Expand Up @@ -160,9 +160,9 @@ const mainAsync = async options => {
// tell chalk if we want color or not.
if (!options.color) {
process.env.NO_COLOR = '1'
process.env.FORCE_COLOR = '0'
delete process.env.FORCE_COLOR
} else {
process.env.NO_COLOR = '0'
delete process.env.NO_COLOR
process.env.FORCE_COLOR = '3'
}

Expand Down

0 comments on commit 315a921

Please sign in to comment.