Files
bps_admin/scripts/generate-client.sh
mazxd e7a9a8adec Revert "ci: 重构"
This reverts commit 6eee3f885f.
2025-03-25 22:04:45 +08:00

13 lines
256 B
Bash

#! /usr/bin/env bash
set -e
set -x
cd backend
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
mv openapi.json frontend/
cd frontend
npm run generate-client
npx biome format --write ./src/client