Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Handle cases where old nodes return '' from path.join()
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 11, 2011
1 parent 43e09e1 commit d07c76c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/load-package-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function loadPackageDefaults (pkg, pkgDir, cb) {
cb = pkgDir
pkgDir = path.join(npm.dir, pkg.name, pkg.version, "package")
}
if (!pkgDir) pkgDir = "."

var cached = npm.get(pkg._id)
if (cached) pkg = cached
Expand Down

0 comments on commit d07c76c

Please sign in to comment.