mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
* feature: init open api ts code gen * chore: update custom instance to a separate axios instance * chore: update code owners * chore: set up node version in CI * fix: node version * chore: update jsci.yaml * chore: update goci.yaml * chore: rename instance * chore: resolve comments
15 lines
459 B
Bash
Executable File
15 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Rename tag files to index.ts in services directories
|
|
# tags-split creates: services/tagName/tagName.ts -> rename to services/tagName/index.ts
|
|
find src/api/generated/services -mindepth 1 -maxdepth 1 -type d | while read -r dir; do
|
|
dirname=$(basename "$dir")
|
|
tagfile="$dir/$dirname.ts"
|
|
if [ -f "$tagfile" ]; then
|
|
mv "$tagfile" "$dir/index.ts"
|
|
echo "Renamed $tagfile -> $dir/index.ts"
|
|
fi
|
|
done
|
|
|
|
echo "Tag files renamed to index.ts"
|