1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00
unleash.unleash/frontend/scripts/clean_orval_generated.sh
Tymoteusz Czech 0b2479517f
feat: update Orval config (#8038)
Simplify running frontend `gen:api`
2024-09-02 15:14:48 +02:00

15 lines
274 B
Bash
Executable File

#!/bin/bash
echo "Deleting generated apis..."
rm -rf src/openapi/apis
# Remove all but last line from index.ts
echo "Cleaning index.ts..."
echo "export * from './models';" > src/openapi/index.ts
echo '' >> src/openapi/index.ts
echo "Formatting..."
yarn fmt
echo "Done!"