fix(packages): Don’t look for package in top level directory

Fixes issue with Keybase.io installing a folder at the top level of the filesystem called `keybase`
This commit is contained in:
Ben Gotow 2016-07-27 11:52:48 -07:00
parent 008aa11318
commit b7408805f0

View file

@ -168,8 +168,6 @@ class PackageManager
#
# Return a {String} folder path or undefined if it could not be resolved.
resolvePackagePath: (name) ->
return name if fs.isDirectorySync(name)
packagePath = fs.resolve(@packageDirPaths..., name)
return packagePath if fs.isDirectorySync(packagePath)