mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-24 13:19:50 +00:00
feat(yarn): use proper $PWD var (#13639)
This commit is contained in:
committed by
GitHub
parent
7e7cb5a23c
commit
9151236d1e
@@ -111,7 +111,7 @@ _yarn_commands_scripts() {
|
||||
packageJson=$(_yarn_find_package_json $opt_args[--cwd])
|
||||
binaries=($(builtin cd $opt_args[--cwd] && echo node_modules/.bin/*(x:t)))
|
||||
else
|
||||
packageJson=$(_yarn_find_package_json $pwd)
|
||||
packageJson=$(_yarn_find_package_json $PWD)
|
||||
binaries=($(echo node_modules/.bin/*(x:t)))
|
||||
fi
|
||||
|
||||
@@ -135,7 +135,7 @@ _yarn_scripts() {
|
||||
binaries=($(builtin cd $_yarn_run_cwd && yarn bin | perl -wln -e 'm{^[^:]+: (\S+)$} and print $1'))
|
||||
fi
|
||||
else
|
||||
packageJson=$(_yarn_find_package_json $pwd)
|
||||
packageJson=$(_yarn_find_package_json $PWD)
|
||||
if [[ -d node_modules ]]; then
|
||||
binaries=($(echo node_modules/.bin/*(x:t)))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user