Permalink
Browse files

fix for loading coffee - coffeescript have added custom extension han…

…dling to require()
  • Loading branch information...
andrzejsliwa committed Sep 10, 2010
1 parent d0f3ee2 commit c9123fa97fe4cedc4671b5d4213811b9946fc3d3
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/jake.js
View
@@ -423,12 +423,8 @@ if(!exists) {
}
try {
- if (jakefile.search(/\.js/) != -1) {
- var tasks = require(jakefile);
- } else {
- CoffeeScript = require('coffee-script');
- CoffeeScript.run(fs.readFileSync(jakefile + '.coffee').toString(), { fileName: 'Jakefile', global: true });
- }
+ CoffeeScript = require('coffee-script');
+ var tasks = require(jakefile);
}
catch (e) {
jake.die('Could not load Jakefile.');

0 comments on commit c9123fa

Please sign in to comment.