diff options
author | isaacs <i@izs.me> | 2012-06-11 04:35:10 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-11 04:35:10 +0400 |
commit | abf3dcf3f9ec2ff402cfc7db3b493ff8926b3b4f (patch) | |
tree | 1f22ffef7130167a45194bf0e6ddf4148ba8e8f0 | |
parent | 7027e3743ced2658fcee8c8582f0e1d387ba4448 (diff) |
Remove vestigial code
-rw-r--r-- | lib/utils/read-json.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index 78c0af718..146f46062 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -23,15 +23,6 @@ function readJson (jsonFile, opts, cb) { log.verbose("read json", jsonFile) opts.file = jsonFile - if (!opts.tag) { - var parsedPath = jsonFile.indexOf(npm.dir) === 0 && jsonFile.match( - /\/([^\/]+)\/([^\/]+)\/package\/package\.json$/) - if (parsedPath && semver.valid(parsedPath[2])) { - // this is a package.json in some installed package. - // infer the opts.tag so that linked packages behave right. - opts.tag = parsedPath[2] - } - } var wscript = null , contributors = null @@ -355,9 +346,6 @@ function processObject (opts, cb) { return function (er, json) { json._id = json.name+"@"+json.version - var tag = opts.tag - if (tag) json.version = tag - var scripts = json.scripts || {} // if it has a bindings.gyp, then build with node-gyp |