Skip to content

Commit

Permalink
fix(config): allow CoffeeScript 1.7 to be used
Browse files Browse the repository at this point in the history
CoffeeScript 1.7 requires a register call to be made. This change is still backwards compatible with older versions of CS because the needed part, the require, is still done. The register function fails but it is wrapped in a try catch block so it fails silently.
  • Loading branch information
eddiemonge committed Jan 31, 2014
1 parent e6e1da8 commit a1583de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ var constant = require('./constants');

// Coffee is required here to enable config files written in coffee-script.
// It's not directly used in this file.
require('coffee-script');
try {
require('coffee-script').register();
} catch (e) {}

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

0 comments on commit a1583de

Please sign in to comment.