Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jul 10, 2012
1 parent 9e8c8f6 commit 7248801
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
15 changes: 6 additions & 9 deletions jspackage.js

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

9 changes: 5 additions & 4 deletions src/jspackage.coffee
Expand Up @@ -39,10 +39,11 @@ parseFile = (resolved_dep, cb) ->
re = parser.depend_re re = parser.depend_re
re.lastIndex = 0 re.lastIndex = 0
while result = re.exec(source) while result = re.exec(source)
depend = result[1] file.deps.push
options = {bare: result[2]?} depend: result[1]
seen = resolved_dep.seen.concat(file.path) options: {bare: result[2]?}
file.deps.push {depend, options, cwd: file.cwd, seen} cwd: file.cwd
seen: resolved_dep.seen.concat(file.path)
cb null, file cb null, file




Expand Down

0 comments on commit 7248801

Please sign in to comment.