Skip to content

Commit 3ffa1c4

Browse files
authored
Merge pull request #23 from forivall/update
fix: _nx_workspace_targets properly backport
2 parents c43a9c7 + b599d36 commit 3ffa1c4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nx-completion.plugin.zsh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ _workspace_projects() {
6666
# Collect workspace targets
6767
_nx_workspace_targets() {
6868
integer ret=1
69-
if _workspace_def; then
70-
jq -r '[.graph.nodes[] | .data.targets | keys[]] | unique[] | if test(":") then . | gsub(":"; "\\:") else . end' $_nx_tmp_cached_def && ret=0
71-
fi
69+
local def=$(_workspace_def)
70+
jq -r '[.graph.nodes[] | .data.targets | keys[]] | unique[] | if test(":") then . | gsub(":"; "\\:") else . end' $def && ret=0
7271
return ret
7372
}
7473

0 commit comments

Comments
 (0)