Skip to content

Commit

Permalink
support coffee-script 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kunkle committed Feb 17, 2014
2 parents 8580515 + 950f07c commit 901eba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/migration.js
Expand Up @@ -7,8 +7,10 @@ var log = require('./log');


var filesRegEx = /\.js$/; var filesRegEx = /\.js$/;
var coffeeSupported = false; var coffeeSupported = false;
var coffeeModule = null;
try { try {
require('coffee-script'); coffeeModule = require('coffee-script');
if (coffeeModule && coffeeModule.register) coffeeModule.register();
coffeeSupported = true; coffeeSupported = true;
filesRegEx = /\.(js|coffee)$/; filesRegEx = /\.(js|coffee)$/;
} catch (e) {} } catch (e) {}
Expand Down

0 comments on commit 901eba6

Please sign in to comment.