Skip to content

Commit

Permalink
Merge pull request #3340 from benbria/master
Browse files Browse the repository at this point in the history
Fix a typo causing module.paths to be always set as the cwd.
  • Loading branch information
jashkenas committed Jan 29, 2014
2 parents a73a6e2 + 38bd879 commit 114eccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/coffee-script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/coffee-script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ exports.run = (code, options = {}) ->
mainModule.moduleCache and= {}

# Assign paths for node_modules loading
dir = if options.fileName
dir = if options.filename
path.dirname fs.realpathSync options.filename
else
fs.realpathSync '.'
Expand Down

0 comments on commit 114eccb

Please sign in to comment.