reconcile/scripts/update-api-types.sh

8 lines
193 B
Bash
Executable file

#!/bin/bash
set -e
./scripts/utils/wait-for-server.sh
npm install -g openapi-typescript
openapi-typescript http://localhost:3000/api.json --output frontend/sync-client/src/services/types.ts