aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/lib/publish.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-01-09 15:21:30 -0800
committerisaacs <i@izs.me>2013-01-09 15:21:30 -0800
commitaa742ddf80f104bc4f13321668a4ede0c518cd4a (patch)
treed5edb83aca0a793d82349dacf228cc3689bbf16e /deps/npm/lib/publish.js
parent7a2ae4c930224e9c8e9090b6aa3437833f415452 (diff)
downloadandroid-node-v8-aa742ddf80f104bc4f13321668a4ede0c518cd4a.tar.gz
android-node-v8-aa742ddf80f104bc4f13321668a4ede0c518cd4a.tar.bz2
android-node-v8-aa742ddf80f104bc4f13321668a4ede0c518cd4a.zip
npm: Upgrade to v1.2.0
Diffstat (limited to 'deps/npm/lib/publish.js')
-rw-r--r--deps/npm/lib/publish.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/npm/lib/publish.js b/deps/npm/lib/publish.js
index bb6a4cede0..027ea59553 100644
--- a/deps/npm/lib/publish.js
+++ b/deps/npm/lib/publish.js
@@ -32,6 +32,7 @@ function publish (args, isRetry, cb) {
var arg = args[0]
// if it's a local folder, then run the prepublish there, first.
readJson(path.resolve(arg, "package.json"), function (er, data) {
+ if (er && er.code !== "ENOENT") return cb(er)
// error is ok. could be publishing a url or tarball
// however, that means that we will not have automatically run
// the prepublish script, since that gets run when adding a folder