Skip to content

Commit

Permalink
Merge pull request #284 from nathancarter/patch-1
Browse files Browse the repository at this point in the history
Add support for CoffeeScript >=1.7.0
  • Loading branch information
tebriel committed Feb 1, 2014
2 parents 272b85b + 885a38b commit dfd6ad4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jasmine-node/cli.js
Expand Up @@ -64,7 +64,11 @@ while(args.length) {
isVerbose = true;
break;
case '--coffee':
require('coffee-script');
try {
require('coffee-script/register'); // support CoffeeScript >=1.7.0
} catch ( e ) {
require('coffee-script'); // support CoffeeScript <=1.6.3
}
extensions = "js|coffee|litcoffee";
break;
case '-m':
Expand Down

0 comments on commit dfd6ad4

Please sign in to comment.