Files
full-stack-fastapi/scripts/generate-client.sh
2026-01-22 18:38:25 +00:00

12 lines
244 B
Bash

#! /usr/bin/env bash
set -e
set -x
cd backend
uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
mv openapi.json frontend/
bun run --filter frontend generate-client
bun run lint