diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-07-31 09:05:30 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-07-31 09:05:30 -0700 |
commit | 1223cafea647e2af4580f4990dc313abf4f7a802 (patch) | |
tree | 86187cebe369b35e0075976cefcbe73fd58aede4 /deps/npm/lib/publish.js | |
parent | 4f1ae11a62b97052bc83756f8cb8700cc1f61661 (diff) | |
download | android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.tar.gz android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.tar.bz2 android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.zip |
npm: Upgrade to v1.4.21
Diffstat (limited to 'deps/npm/lib/publish.js')
-rw-r--r-- | deps/npm/lib/publish.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/lib/publish.js b/deps/npm/lib/publish.js index 01d66b407f..ccad3ea827 100644 --- a/deps/npm/lib/publish.js +++ b/deps/npm/lib/publish.js @@ -3,10 +3,8 @@ module.exports = publish var npm = require("./npm.js") , log = require("npmlog") - , tar = require("./utils/tar.js") , path = require("path") , readJson = require("read-package-json") - , fs = require("graceful-fs") , lifecycle = require("./utils/lifecycle.js") , chain = require("slide").chain , Conf = require("npmconf").Conf @@ -70,6 +68,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) { // check for publishConfig hash var registry = npm.registry + var registryURI = npm.config.get("registry") if (data.publishConfig) { var pubConf = new Conf(npm.config) pubConf.save = npm.config.save.bind(npm.config) @@ -81,6 +80,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) { return s }, {})) registry = new RegClient(pubConf) + registryURI = pubConf.get("registry") } data._npmVersion = npm.version @@ -93,7 +93,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) { +"Remove the 'private' field from the package.json to publish it.")) var tarball = cachedir + ".tgz" - registry.publish(data, tarball, function (er) { + registry.publish(registryURI, data, tarball, function (er) { if (er && er.code === "EPUBLISHCONFLICT" && npm.config.get("force") && !isRetry) { log.warn("publish", "Forced publish over "+data._id) |