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

test: add debug statements

Lubos 948d7954 f651e5d3

+10 -3
+10 -3
scripts/examples-generate.sh
··· 44 44 echo "Generating: $example_name" 45 45 set -e 46 46 cd "$dir" 47 - echo "-> Running pnpm -s exec openapi-ts" 48 - # Use `pnpm exec` so the CLI binary from the workspace is resolved in CI 49 - pnpm -s exec openapi-ts 47 + echo "-> Debug: node $(node --version 2>/dev/null || echo 'node-not-found')" 48 + echo "-> Debug: pnpm $(pnpm --version 2>/dev/null || echo 'pnpm-not-found')" 49 + echo "-> Debug: pwd $(pwd)" 50 + echo "-> Running pnpm exec for openapi-ts (workspace-aware if available)" 51 + # Use `pnpm -w exec` when available so the CLI binary from the workspace is resolved in CI 52 + if pnpm -w -s --version >/dev/null 2>&1; then 53 + pnpm -w -s exec openapi-ts 54 + else 55 + pnpm -s exec openapi-ts 56 + fi 50 57 51 58 # Format generated files in this example only to keep the step fast 52 59 if command -v pnpm >/dev/null 2>&1 && pnpm -w -s --version >/dev/null 2>&1; then