Permalink
Browse files

npm/npm#2075 Include the contents of dirs in 'files' array

  • Loading branch information...
1 parent 19035fe commit a391ba8bef190b6f44c759d32f8797aac1d928b8 @isaacs isaacs committed Mar 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 fstream-npm.js
View
@@ -192,6 +192,8 @@ Packer.prototype.readRules = function (buf, e) {
// ignore everything except what's in the files array.
return ["*"].concat(p.files.map(function (f) {
return "!" + f
+ })).concat(p.files.map(function (f) {
+ return "!" + f.replace(/\/+$/, "") + "/**"
}))
}

0 comments on commit a391ba8

Please sign in to comment.