Permalink
Browse files

compatible with coffee-script 1.7

  • Loading branch information...
jinze committed Feb 2, 2014
1 parent 79e96d0 commit 950f07ce49b3efea24c55e5b4109783bd33c4a55
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 950f07c

Please sign in to comment.