Merge pull request #792 from sindresorhus/remove-moot-dep

Remove `supports-color` dependency as it's available in `chalk`
This commit is contained in:
Sebastian McKenzie 2015-02-17 08:53:42 +11:00
commit e336ecd9cc
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,5 @@
// syntax highlighting based on https://github.com/dominictarr/ansi-highlight by the fantastic Dominic Tarr
var supportsColor = require("supports-color");
var tokenize = require("js-tokenizer");
var chalk = require("chalk");
var util = require("../util");
@ -43,7 +42,7 @@ var highlight = function (text) {
module.exports = function (lines, lineNumber, colNumber) {
colNumber = Math.max(colNumber, 0);
if (supportsColor) {
if (chalk.supportsColor) {
lines = highlight(lines);
}

View File

@ -60,7 +60,6 @@
"roadrunner": "1.0.4",
"source-map": "0.1.43",
"source-map-support": "0.2.9",
"supports-color": "1.2.0",
"useragent": "^2.1.5"
},
"devDependencies": {