functions/fish_npm_helper: Use physical pwd

This searched for package.json in any parent, so just like finding
.git and .hg directories it _needs_ to use the physical pwd because
that's what git/hg/yarn use.

In general, if you do _any_ logic on $PWD, it should be the physical
path. Logical $PWD is basically only good for display and cd-ing
around with symlinks.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-03-24 10:46:42 +01:00
parent b270ca8804
commit 5afd1336e8

View file

@ -38,7 +38,7 @@ function __yarn_filtered_list_packages
end
function __yarn_find_package_json
set parents (__fish_parent_directories (pwd))
set parents (__fish_parent_directories (pwd -P))
for p in $parents
if test -f "$p/package.json"