Browse files

show filename in coffeescript compilation errors

  • Loading branch information...
1 parent 6d72c02 commit b8192cc3a25abac467932314e410b7ddc62b47a8 @quackingduck quackingduck committed Oct 9, 2012
Showing with 5 additions and 3 deletions.
  1. +3 −1 lib/emport.js
  2. +1 −1 package.json
  3. +1 −1 src/emport.coffee
View
4 lib/emport.js
@@ -138,7 +138,9 @@ Here's a rough overview of what happens when `emport` is called:
filename = filenamesInOrder[_j];
contents = emportMap[filename].contents;
if (filename.match(/\.coffee$/)) {
- _results.push(coffee.compile(contents));
+ _results.push(coffee.compile(contents, {
+ filename: filename
+ }));
} else {
_results.push(contents);
}
View
2 package.json
@@ -1,5 +1,5 @@
{ "name": "emport"
-, "version": "0.5.2"
+, "version": "0.5.3"
, "author": "Myles Byrne"
View
2 src/emport.coffee
@@ -113,7 +113,7 @@ module.exports = emport = (targetFilename, options, callback) ->
contentsInOrder = for filename in filenamesInOrder
contents = emportMap[filename].contents
if filename.match /\.coffee$/
- coffee.compile contents
+ coffee.compile contents, filename: filename
else
contents

0 comments on commit b8192cc

Please sign in to comment.