Skip to content

Commit

Permalink
fix(gatsby-cli): properly update chalk color level
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrigank11 committed Oct 17, 2019
1 parent a320c64 commit df199f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/gatsby-cli/src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ const reporter: Reporter = {
if (isNoColor) {
process.env.FORCE_COLOR = `0`
}

// Change chalk color level
// 0 All colors disabled
// 1 Basic color support (16 colors)
// 2 256 color support
// 3 Truecolor support (16 million colors)
this.format.level = isNoColor ? 0 : 3
},
/**
* Log arguments and exit process with status 1.
Expand Down

0 comments on commit df199f5

Please sign in to comment.