Skip to content

Commit fd3d41c

Browse files
author
Danielle Adams
committed
use built in yarn command
1 parent 2935101 commit fd3d41c

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

lib/yarn-2.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,8 @@ has_yarn_cache() {
2626
}
2727

2828
has_yarn_workspace_plugin_installed() {
29-
local build_dir="$1"
30-
local plugin_paths=$(get_yarn_plugin_paths "$build_dir")
31-
local path
32-
33-
if [[ -n $plugin_paths ]]; then
34-
path=$(echo "$plugin_paths" | grep plugin-workspace-tools)
35-
else
36-
path=""
37-
fi
38-
39-
[[ ! "$path" == "" ]]
40-
}
41-
42-
get_yarn_plugin_paths() {
43-
local build_dir="$1"
44-
$YQ r "$build_dir/.yarnrc.yml" "plugins.[*].path" 2>&1
29+
local has_workspace_plugin=$(yarn plugin runtime | grep plugin-workspace-tools)
30+
[[ ! "$has_workspace_plugin" == "" ]]
4531
}
4632

4733
get_yarn_path() {

0 commit comments

Comments
 (0)