force blue color to be use bright blue on Windows - fixes #36

as the normal blue color is illegible
This commit is contained in:
Sindre Sorhus 2014-12-05 16:11:13 +07:00
parent 0b1c65dfd3
commit fc6a9b27dc
3 changed files with 15 additions and 10 deletions

View file

@ -7,6 +7,11 @@ var supportsColor = require('supports-color');
var defineProps = Object.defineProperties;
var chalk = module.exports;
// use bright blue on Windows as the normal blue color is illegible
if (process.platform === 'win32') {
ansiStyles.blue.open = '\u001b[94m';
}
function build(_styles) {
var builder = function builder() {
return applyStyle.apply(builder, arguments);