mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 18:11:39 -04:00
fix(reporter): use bright cyan instead of blue
blue is hard to read in many consoles
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
npm install pnpm-default-reporter
|
||||
```
|
||||
|
||||
## Style Guide
|
||||
|
||||
1. Never use blue as font color as it is hard to read in many consoles
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
@@ -35,7 +35,7 @@ const REMOVED_CHAR = chalk.red('-')
|
||||
const LINKED_CHAR = chalk.magentaBright('#')
|
||||
const PREFIX_MAX_LENGTH = 40
|
||||
|
||||
const hlValue = chalk.blue
|
||||
const hlValue = chalk.cyanBright
|
||||
const hlPkgId = chalk['whiteBright']
|
||||
|
||||
export default function (
|
||||
@@ -231,7 +231,7 @@ export default function (
|
||||
const diffs = R.values(pkgsDiff[depType])
|
||||
if (diffs.length) {
|
||||
msg += EOL
|
||||
msg += chalk.blue(`${propertyByDependencyType[depType]}:`)
|
||||
msg += chalk.cyanBright(`${propertyByDependencyType[depType]}:`)
|
||||
msg += EOL
|
||||
msg += printDiffs(diffs)
|
||||
msg += EOL
|
||||
|
||||
@@ -18,8 +18,8 @@ const versionColor = chalk.grey
|
||||
const ADD = chalk.green('+')
|
||||
const SUB = chalk.red('-')
|
||||
const LINKED = chalk.magentaBright('#')
|
||||
const h1 = chalk.blue
|
||||
const hlValue = chalk.blue
|
||||
const h1 = chalk.cyanBright
|
||||
const hlValue = chalk.cyanBright
|
||||
const hlPkgId = chalk['whiteBright']
|
||||
const POSTINSTALL = hlValue('postinstall')
|
||||
const PREINSTALL = hlValue(' preinstall')
|
||||
|
||||
Reference in New Issue
Block a user