Skip to content

Commit 74adbcf

Browse files
committed
use chalk instead
1 parent 109c953 commit 74adbcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"repl.js"
2929
],
3030
"scripts": {
31-
"postinstall": "node --eval \"if (require('./package.json').name === 'coffee-script') { var red, yellow, cyan, reset; red = yellow = cyan = reset = ''; if (!process.env.NODE_DISABLE_COLORS) { red = '\\x1b[31m'; yellow = '\\x1b[33m'; cyan = '\\x1b[36m'; reset = '\\x1b[0m'; } console.warn(red + 'CoffeeScript has moved!' + reset + ' Please update references to ' + yellow + '\\\"coffee-script\\\"' + reset + ' to use ' + yellow + '\\\"coffeescript\\\"' + reset + ' (no hyphen) instead.'); console.warn('Also, a new major version has been released under the ' + yellow + 'coffeescript' + reset + ' name on NPM. This new release targets modern JavaScript, with minimal breaking changes. Learn more at ' + cyan + 'http://coffeescript.org' + reset + '.'); console.warn(''); }\"",
31+
"postinstall": "node ./warning.js",
3232
"test": "node ./bin/cake test",
3333
"test-harmony": "node --harmony ./bin/cake test"
3434
},
@@ -45,5 +45,8 @@
4545
"jison": "~0.4.18",
4646
"markdown-it": "~8.4.0",
4747
"underscore": "~1.8.3"
48+
},
49+
"dependencies": {
50+
"chalk": "^2.3.0"
4851
}
4952
}

0 commit comments

Comments
 (0)