fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3220 from hey-api/ci/fix-pkg-pr-new

authored by

Lubos and committed by
GitHub
3fdce9b1 dbc16ee2

+11 -2
+11 -2
scripts/publish-preview-packages.sh
··· 1 1 #!/usr/bin/env bash 2 2 3 - result=$(pnpx turbo run build --affected --dry-run=json) 3 + result=$(pnpx turbo run build --affected --dry-run=json 2>&1) 4 + 5 + # turbo may emit warnings or other text before the JSON output. Extract the 6 + # first JSON object/array found in the output so `jq` can parse it safely. 7 + json=$(printf '%s\n' "$result" | awk '/^{/ {flag=1} flag {print}') 8 + 9 + if [ -z "$json" ]; then 10 + echo "Error: no JSON output from turbo; aborting." >&2 11 + exit 1 12 + fi 4 13 5 - packages=$(echo "$result" | jq -r '.tasks[].directory' | grep '^packages/' | while read -r dir; do 14 + packages=$(echo "$json" | jq -r '.tasks[].directory' | grep '^packages/' | while read -r dir; do 6 15 if [ "$(jq -r '.private' "$dir/package.json")" != "true" ]; then 7 16 echo "./$dir" 8 17 fi