Created
May 23, 2010 10:02
-
-
Save StanAngeloff/410812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/command.js b/lib/command.js | |
index cb1d9e7..a1fe63b 100644 | |
--- a/lib/command.js | |
+++ b/lib/command.js | |
@@ -80,7 +80,7 @@ | |
} | |
return _f; | |
}); | |
- } else if (path.extname(source) === '.coffee') { | |
+ } else { | |
fs.readFile(source, function(err, code) { | |
return compile_script(source, code.toString(), base); | |
}); | |
diff --git a/src/command.coffee b/src/command.coffee | |
index 9aec6a0..2f0b76b 100644 | |
--- a/src/command.coffee | |
+++ b/src/command.coffee | |
@@ -74,7 +74,7 @@ compile_scripts: -> | |
fs.readdir source, (err, files) -> | |
for file in files | |
compile path.join(source, file) | |
- else if path.extname(source) is '.coffee' | |
+ else | |
fs.readFile source, (err, code) -> compile_script(source, code.toString(), base) | |
watch source, base if options.watch | |
compile source |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment