Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename gyp files in the reader, not on the actual fs

  • Loading branch information...
commit 7553ce6d8ab09aa905db2aeb4c38e75b7abed706 1 parent 3fc7093
@isaacs isaacs authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 fstream-npm.js
View
9 fstream-npm.js
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.