From b5107bbe16825e7e603d582a1f10afe15986ee47 Mon Sep 17 00:00:00 2001 From: NeverwinterMoon Date: Wed, 1 Nov 2017 10:03:02 +0200 Subject: [PATCH] feat(config): allow to use newer versions of CoffeeScript 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 --- lib/configParser.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/configParser.ts b/lib/configParser.ts index d85800c44..6f1e41d71 100644 --- a/lib/configParser.ts +++ b/lib/configParser.ts @@ -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');