Skip to content

Commit

Permalink
Rename gyp files in the reader, not on the actual fs
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 27, 2012
1 parent 3fc7093 commit 7553ce6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fstream-npm.js
Expand Up @@ -181,8 +181,13 @@ Packer.prototype.emitEntry = function (entry) {
entry.path = path.resolve(entry.dirname, entry.basename)
}

// skip over symbolic links if we're not in the node_modules
// folder doing bundle whatevers
// all *.gyp files are renamed to binding.gyp for node-gyp
if (entry.basename.match(/\.gyp$/)) {
entry.basename = "binding.gyp"
entry.path = path.resolve(entry.dirname, entry.basename)
}

// skip over symbolic links
if (this.basename !== "node_modules" && entry.type === "SymbolicLink") {
return
}
Expand Down

0 comments on commit 7553ce6

Please sign in to comment.