mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
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:
parent
b270ca8804
commit
5afd1336e8
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue