Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-11 04:35:10 +0400
committerisaacs <i@izs.me>2012-06-11 04:35:10 +0400
commitabf3dcf3f9ec2ff402cfc7db3b493ff8926b3b4f (patch)
tree1f22ffef7130167a45194bf0e6ddf4148ba8e8f0
parent7027e3743ced2658fcee8c8582f0e1d387ba4448 (diff)
Remove vestigial code
-rw-r--r--lib/utils/read-json.js12
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