fix yarn completion

- do not use global variable
This commit is contained in:
Shohei YOSHIDA
2026-03-08 22:52:32 +09:00
parent 4a9df2bdc8
commit 1fd073d384
+1
View File
@@ -731,6 +731,7 @@ _yarn_version() {
(( $+functions[_yarn_workspace] )) ||
_yarn_workspace() {
local ret=1
local package_json=$(_yarn_package_json_path)
local package_dir=$(dirname $package_json)