Revision 5aef65a9 deps/npm/lib/publish.js

View differences:

deps/npm/lib/publish.js
32 32
  var arg = args[0]
33 33
  // if it's a local folder, then run the prepublish there, first.
34 34
  readJson(path.resolve(arg, "package.json"), function (er, data) {
35
    if (er && er.code !== "ENOENT") return cb(er)
35
    if (er && er.code !== "ENOENT" && er.code !== "ENOTDIR") return cb(er)
36 36
    // error is ok.  could be publishing a url or tarball
37 37
    // however, that means that we will not have automatically run
38 38
    // the prepublish script, since that gets run when adding a folder

Also available in: Unified diff