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

15 lines
274 B
Bash
Raw Normal View History

#!/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!"