revert: suggest binaries on `yarn`

This behavior is the same as before c6bdbc69e1
This commit is contained in:
Maxim Devoir 2019-10-07 12:14:10 -07:00
parent a47b58ef97
commit c9b335769c
No known key found for this signature in database
GPG Key ID: 15FE60D138565324
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ _global_commands=(
_yarn_commands_scripts() {
local -a scripts
scripts=($(yarn run --json 2>/dev/null | sed -E '/possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
_describe 'command or script' _commands -- _global_commands -- scripts
}