Include devDependencies in yarn and npm completions

This commit is contained in:
Mahmoud Al-Qudsi 2018-04-20 23:05:31 -05:00
parent a733296980
commit a9e9af5c5d

View file

@ -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)