Skip to content

Commit a9ae5cd

Browse files
committed
test: try to build again first
1 parent 948d795 commit a9ae5cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/examples-generate.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
1010
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
1111

1212
echo "⏳ Generating client code for all examples..."
13+
# Build the CLI package so its bin is available to examples in the workspace.
14+
echo "Building @hey-api/openapi-ts (required for example generation)..."
15+
if pnpm -w -s --version >/dev/null 2>&1; then
16+
pnpm -w -s --filter "@hey-api/openapi-ts" build
17+
else
18+
pnpm -s --filter "@hey-api/openapi-ts" build
19+
fi
20+
1321
# Find all examples with openapi-ts script and generate code in parallel
1422
# Concurrency control: adjust this number depending on CI machine resources
1523
CONCURRENCY=${CONCURRENCY:-4}

0 commit comments

Comments
 (0)