Always return real package paths

Esse commit está contido em:
Kevin Sawicki
2015-01-27 15:35:28 -08:00
commit a6e59bbbe0
+1 -1
Ver Arquivo
@@ -154,7 +154,7 @@ class PackageManager
# #
# Return a {String} folder path or undefined if it could not be resolved. # Return a {String} folder path or undefined if it could not be resolved.
resolvePackagePath: (name) -> resolvePackagePath: (name) ->
return name if fs.isDirectorySync(name) return fs.absolute(name) if fs.isDirectorySync(name)
packagePath = fs.resolve(@packageDirPaths..., name) packagePath = fs.resolve(@packageDirPaths..., name)
return packagePath if fs.isDirectorySync(packagePath) return packagePath if fs.isDirectorySync(packagePath)