diff options
author | isaacs <i@izs.me> | 2012-03-27 11:06:20 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-27 11:17:36 +0400 |
commit | 74dbb1fb749126fa31c12a0ac59d1e8f17dc7c32 (patch) | |
tree | a096a74f2af962ba73424001771565e390def5bc /node_modules/fstream-npm | |
parent | 826c7e31a0e726a51552bef9ae007455019c38ab (diff) |
Update fstream-npm to 0.0.2
Diffstat (limited to 'node_modules/fstream-npm')
-rw-r--r-- | node_modules/fstream-npm/fstream-npm.js | 7 | ||||
-rw-r--r-- | node_modules/fstream-npm/package.json | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/node_modules/fstream-npm/fstream-npm.js b/node_modules/fstream-npm/fstream-npm.js index 69ad84079..7771b6b03 100644 --- a/node_modules/fstream-npm/fstream-npm.js +++ b/node_modules/fstream-npm/fstream-npm.js @@ -21,6 +21,7 @@ function Packer (props) { Ignore.call(this, props) + this.bundled = props.bundled this.package = props.package // in a node_modules folder, resolve symbolic links to @@ -47,11 +48,15 @@ Packer.prototype.applyIgnores = function (entry, partial) { // also, prevent packages in node_modules from being affected // by rules set in the containing package, so that // bundles don't get busted. + // Also, once in a bundle, everything is installed as-is + if (this.bundled) return true if (this.basename === "node_modules") { if (entry.indexOf("/") === -1) { + if (this.bundled) return true var bd = this.package && this.package.bundleDependencies var shouldBundle = bd && bd.indexOf(entry) !== -1 // console.error("should bundle?", shouldBundle, this.package) + this.bundled = shouldBundle return shouldBundle } return true @@ -119,6 +124,8 @@ Packer.prototype.getChildProps = function (stat) { props.package = this.package + props.bundled = this.bundled + // Directories have to be read as Packers // otherwise fstream.Reader will create a DirReader instead. if (stat.isDirectory()) { diff --git a/node_modules/fstream-npm/package.json b/node_modules/fstream-npm/package.json index 231bde2a1..57a950e7b 100644 --- a/node_modules/fstream-npm/package.json +++ b/node_modules/fstream-npm/package.json @@ -6,7 +6,7 @@ }, "name": "fstream-npm", "description": "fstream class for creating npm packages", - "version": "0.0.1", + "version": "0.0.2", "repository": { "type": "git", "url": "git://github.com/isaacs/fstream-npm.git" @@ -19,7 +19,7 @@ "name": "isaacs", "email": "i@izs.me" }, - "_id": "fstream-npm@0.0.1", + "_id": "fstream-npm@0.0.2", "devDependencies": {}, "optionalDependencies": {}, "engines": { @@ -29,5 +29,5 @@ "_npmVersion": "1.1.12", "_nodeVersion": "v0.7.7-pre", "_defaultsLoaded": true, - "_from": "fstream-npm" + "_from": "fstream-npm@0.0" } |