fix(list): don't use inverse to highight

close #2697
PR #2703
This commit is contained in:
Zoltan Kochan
2020-07-23 03:22:36 +03:00
committed by GitHub
parent 4e5e22aabb
commit 78c2741b69
3 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/list": patch
---
Don't use inverse as it doesn't look good in all consoles.

View File

@@ -130,7 +130,7 @@ function printLabel (getPkgColor: GetPkgColor, node: PackageNode) {
if (node.isSkipped) {
txt += ' skipped'
}
return node.searched ? chalk.bold.inverse(txt) : txt
return node.searched ? chalk.bold(txt) : txt
}
function getPkgColor (node: PackageNode) {

View File

@@ -19,7 +19,7 @@ const DEV_DEPENDENCIES = chalk.cyanBright('devDependencies:')
const OPTIONAL_DEPENDENCIES = chalk.cyanBright('optionalDependencies:')
const UNSAVED_DEPENDENCIES = chalk.cyanBright('not saved (you should add these dependencies to package.json if you need them):')
const highlighted = chalk.bold.inverse
const highlighted = chalk.bold
const fixtures = path.join(__dirname, '../../../fixtures')
const fixture = path.join(fixtures, 'fixture')