Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(config): allow to use newer versions of CoffeeScript (#4567)
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 authored and qiyigg committed Dec 15, 2017
1 parent f9df456 commit 9d87982
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/configParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ try {
// Intentionally blank - ignore if coffee-script is not available.
}

// CoffeeScript lost the hyphen in the module name a long time ago, all new version are named this:
try {
require('coffeescript').register();
} catch (e) {
// Intentionally blank - ignore if coffeescript is not available.
}

// LiveScript is required here to enable config files written in LiveScript.
try {
require('LiveScript');
Expand Down

0 comments on commit 9d87982

Please sign in to comment.