mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
16 lines
281 B
Bash
16 lines
281 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
echo "Deleting generated apis..."
|
||
|
rm -rf src/openapi/apis
|
||
|
|
||
|
# Remove all but last line from index.ts
|
||
|
echo "Cleaning index.ts..."
|
||
|
tail -1 src/openapi/index.ts > index_tmp ;
|
||
|
cat index_tmp > src/openapi/index.ts ;
|
||
|
rm index_tmp
|
||
|
|
||
|
echo "Formatting..."
|
||
|
yarn fmt
|
||
|
|
||
|
echo "Done!"
|