···1010ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
11111212echo "⏳ Generating client code for all examples..."
1313+# Build the CLI package so its bin is available to examples in the workspace.
1414+echo "Building @hey-api/openapi-ts (required for example generation)..."
1515+if pnpm -w -s --version >/dev/null 2>&1; then
1616+ pnpm -w -s --filter "@hey-api/openapi-ts" build
1717+else
1818+ pnpm -s --filter "@hey-api/openapi-ts" build
1919+fi
2020+1321# Find all examples with openapi-ts script and generate code in parallel
1422# Concurrency control: adjust this number depending on CI machine resources
1523CONCURRENCY=${CONCURRENCY:-4}