diff --git a/.changeset/tame-spoons-provide.md b/.changeset/tame-spoons-provide.md new file mode 100644 index 0000000000..d20542b02a --- /dev/null +++ b/.changeset/tame-spoons-provide.md @@ -0,0 +1,5 @@ +--- +"@pnpm/list": patch +--- + +Don't use inverse as it doesn't look good in all consoles. diff --git a/packages/list/src/renderTree.ts b/packages/list/src/renderTree.ts index 8529fc6519..9016777454 100644 --- a/packages/list/src/renderTree.ts +++ b/packages/list/src/renderTree.ts @@ -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) { diff --git a/packages/list/test/index.ts b/packages/list/test/index.ts index 2e7d866d39..4ab7218bb6 100644 --- a/packages/list/test/index.ts +++ b/packages/list/test/index.ts @@ -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')