fix(reporter): use bright cyan instead of blue

blue is hard to read in many consoles
This commit is contained in:
Zoltan Kochan
2018-06-03 02:27:07 +03:00
parent 0c08f0063f
commit afb7ea1160
3 changed files with 8 additions and 4 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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')