Update collect workspaces command

This commit is contained in:
Shohei YOSHIDA 2021-12-07 23:06:33 +09:00
parent 1a0808696c
commit c6bce7358c
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ _yarn_add_files() {
}
_yarn_workspaces() {
local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -e 's/^ "\([^"]*\)": {/\1/p')})
local -a workspaces=(${(@f)$(yarn workspaces list --json | sed -n 's|.*"name":"\([^"]*\)"}|\1|p')})
_describe 'workspace' workspaces
}