There was an error while loading. Please reload this page.
1 parent 2935101 commit fd3d41cCopy full SHA for fd3d41c
lib/yarn-2.sh
@@ -26,22 +26,8 @@ has_yarn_cache() {
26
}
27
28
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
44
- $YQ r "$build_dir/.yarnrc.yml" "plugins.[*].path" 2>&1
+ local has_workspace_plugin=$(yarn plugin runtime | grep plugin-workspace-tools)
+ [[ ! "$has_workspace_plugin" == "" ]]
45
46
47
get_yarn_path() {
0 commit comments