Permalink
Browse files

support coffee-script 1.7

  • Loading branch information...
2 parents 8580515 + 950f07c commit 901eba69d34a361b3b443782382ee40a65af881f @kunklejr kunklejr committed Feb 17, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/migration.js
View
@@ -7,8 +7,10 @@ var log = require('./log');
var filesRegEx = /\.js$/;
var coffeeSupported = false;
+var coffeeModule = null;
try {
- require('coffee-script');
+ coffeeModule = require('coffee-script');
+ if (coffeeModule && coffeeModule.register) coffeeModule.register();
coffeeSupported = true;
filesRegEx = /\.(js|coffee)$/;
} catch (e) {}

0 comments on commit 901eba6

Please sign in to comment.