Skip to content
Browse files

Merge pull request #284 from nathancarter/patch-1

Add support for CoffeeScript >=1.7.0
  • Loading branch information...
2 parents 272b85b + 885a38b commit dfd6ad4e46d1dc43b85dc3aeeca1600ed1daa976 @tebriel tebriel committed Feb 1, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/jasmine-node/cli.js
View
6 lib/jasmine-node/cli.js
@@ -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':

0 comments on commit dfd6ad4

Please sign in to comment.
Something went wrong with that request. Please try again.