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
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 1 additions and 0 deletions

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)