1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00
unleash.unleash/frontend/scripts/clean_orval_generated.sh
Tymoteusz Czech 553ffc62b7
fix: orval for ESM (#10086)
updated Orval and configured it to be compatible with v7.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2025-06-05 10:40:58 +00:00

16 lines
340 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/index';" > src/openapi/index.ts
echo '' >> src/openapi/index.ts
echo "Formatting..."
yarn fmt
./node_modules/.bin/biome lint --write --unsafe src/openapi
echo "Done!"