Skip to content

Commit

Permalink
Fix a typo causing module.paths to be always set as the cwd.
Browse files Browse the repository at this point in the history
`options.fileName` was used instead of `options.filename`.
  • Loading branch information
goffrie committed Jan 29, 2014
1 parent a73a6e2 commit 38bd879
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 38bd879

Please sign in to comment.