diff options
author | isaacs <i@izs.me> | 2013-01-09 15:21:30 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-01-09 15:21:30 -0800 |
commit | aa742ddf80f104bc4f13321668a4ede0c518cd4a (patch) | |
tree | d5edb83aca0a793d82349dacf228cc3689bbf16e /deps/npm/lib/publish.js | |
parent | 7a2ae4c930224e9c8e9090b6aa3437833f415452 (diff) | |
download | node-new-aa742ddf80f104bc4f13321668a4ede0c518cd4a.tar.gz |
npm: Upgrade to v1.2.0
Diffstat (limited to 'deps/npm/lib/publish.js')
-rw-r--r-- | deps/npm/lib/publish.js | 1 |
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 |