Skip to content

Commit c6dba19

Browse files
committed
change const to var and downgrade chalk
1 parent 08d60a0 commit c6dba19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"repl.js"
2929
],
3030
"scripts": {
31-
"postinstall": "node ./warning.js",
31+
"postinstall": "node --harmony ./warning.js",
3232
"test": "node ./bin/cake test",
3333
"test-harmony": "node --harmony ./bin/cake test"
3434
},
@@ -47,6 +47,6 @@
4747
"underscore": "~1.8.3"
4848
},
4949
"dependencies": {
50-
"chalk": "^2.3.0"
50+
"chalk": "^1.1.1"
5151
}
5252
}

warning.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const chalk = require('chalk');
1+
var chalk = require('chalk');
22
if (require('./package.json').name === 'coffee-script') {
33
// var red, yellow, cyan, reset; red = yellow = cyan = reset = '';
44
// if (!process.env.NODE_DISABLE_COLORS) {
@@ -7,7 +7,7 @@ if (require('./package.json').name === 'coffee-script') {
77
// cyan = '\\x1b[36m';
88
// reset = '\\x1b[0m';
99
// }
10-
console.warn(chalk.red('CoffeeScript has moved!') + ' Please update references to ' + chalk.yellow('coffee-script') + ' to use ' + chalk.yellow('coffeescript') + ' (no hyphen) instead.');
10+
console.warn(chalk.red('CoffeeScript has moved!') + ' Please update references to ' + chalk.yellow('"coffee-script"') + ' to use ' + chalk.yellow('"coffeescript"') + ' (no hyphen) instead.');
1111
console.warn('Also, a new major version has been released under the ' + chalk.yellow('coffeescript') + ' name on NPM. This new release targets modern JavaScript, with minimal breaking changes. Learn more at ' + chalk.cyan('http://coffeescript.org') + '.');
1212
console.warn('');
1313
}

0 commit comments

Comments
 (0)