Skip to content

Commit

Permalink
fix(gatsby-cli): properly update chalk color level (#18533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrigank11 authored and pieh committed Oct 22, 2019
1 parent ad646d6 commit 800d40c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-cli/src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ const reporter: Reporter = {
// - ansi-colors: see https://github.com/doowb/ansi-colors/blob/8024126c7115a0efb25a9a0e87bc5e29fd66831f/index.js#L5-L7
if (isNoColor) {
process.env.FORCE_COLOR = `0`
// chalk determines color level at import time. Before we reach this point,
// chalk was already imported, so we need to retroactively adjust level
chalk.level = 0
}
},
/**
Expand Down

0 comments on commit 800d40c

Please sign in to comment.