Skip to content

Commit 1e47bb3

Browse files
committed
minor #1441 [CI] Trim yarn JSON in run-vitest-all (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [CI] Trim yarn JSON in run-vitest-all On macOS, `yarn workspaces info` outputs some time/debug info outside the JSON, making it impossible to parse. Trying to find a way to avoid that without messing with the script / other OS ```diff -workspaces_info=$(yarn workspaces info) +workspaces_info=$(yarn workspaces info | sed '1d;$d') ``` cc `@evertharmeling` Commits ------- 6adb5f6 [CI] Trim yarn JSON in run-vitest-all
2 parents 510f506 + 6adb5f6 commit 1e47bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run-vitest-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ processWorkspace() {
4949
}
5050

5151
# Get all workspace names
52-
workspaces_info=$(yarn workspaces info)
52+
workspaces_info=$(yarn -s workspaces info)
5353

5454
# Iterate over each workspace using process substitution
5555
while IFS= read -r workspace_info; do

0 commit comments

Comments
 (0)