mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Include devDependencies in yarn and npm completions
This commit is contained in:
parent
a733296980
commit
a9e9af5c5d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ function __yarn_installed_packages
|
||||||
end
|
end
|
||||||
|
|
||||||
if type -q jq
|
if type -q jq
|
||||||
jq -r '.dependencies | to_entries[] | .key' $package_json
|
jq -r '.dependencies as $a1 | .devDependencies as $a2 | ($a1 + $a2) | to_entries[] | .key' $package_json
|
||||||
else
|
else
|
||||||
set -l depsFound 0
|
set -l depsFound 0
|
||||||
for line in (cat $package_json)
|
for line in (cat $package_json)
|
||||||
|
|
Loading…
Reference in a new issue