Skip to content

Commit

Permalink
fix: minimum detected chalk level (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbs committed Nov 21, 2020
1 parent 1499a76 commit 7384705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Chalk, default as _chalk, Level } from 'chalk'

// Always enable at least basic color support, even if not auto-detected
const chalk = new _chalk.Instance({ level: Math.min(_chalk.level, Level.Basic) })
const chalk = new _chalk.Instance({ level: Math.max(_chalk.level, Level.Basic) })

/**
* A generic interface that holds all available language tokens.
Expand Down

0 comments on commit 7384705

Please sign in to comment.