mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-16 02:03:42 +08:00
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:
parent
008aa11318
commit
b7408805f0
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue