Skip to content

Commit

Permalink
feat(config): allow to use newer versions of CoffeeScript
Browse files Browse the repository at this point in the history
CoffeeScript lost the hyphen in the module name about 9 months ago, all the new 
versions are going to be released as coffeescript not the coffee-script
  • Loading branch information
NeverwinterMoon committed Nov 11, 2017
1 parent feadb7b commit c1fcf42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ try {
COFFEE_SCRIPT_AVAILABLE = true
} catch (e) {}

// CoffeeScript lost the hyphen in the module name a long time ago, all new version are named this:
try {
require('coffeescript').register()
COFFEE_SCRIPT_AVAILABLE = true
} catch (e) {}

// LiveScript is required here to enable config files written in LiveScript.
// It's not directly used in this file.
try {
Expand Down

0 comments on commit c1fcf42

Please sign in to comment.