diff --git a/proto/buf.gen.ts.yaml b/proto/buf.gen.ts.yaml deleted file mode 100644 index a52acffb..00000000 --- a/proto/buf.gen.ts.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: v1 -plugins: - - name: ts - out: ../build/ts-proto - strategy: all - path: /usr/local/bin/protoc-gen-ts_proto \ No newline at end of file diff --git a/proto/generate.sh b/proto/generate.sh index 08810151..a9a65e39 100644 --- a/proto/generate.sh +++ b/proto/generate.sh @@ -1,22 +1,10 @@ -# set arg1 to "ts" to generate typescript code - -cd proto || exit 1 - -if [ "$1" = "ts" ]; then - echo "Generating typescript code" - template="buf.gen.ts.yaml" -else - echo "Generate go code and docs" - template="buf.gen.yaml" -fi - -buf generate --template $template +cd proto +buf generate cd .. -if [ "$1" != "ts" ]; then - cp -r github.com/KYVENetwork/chain/* ./ - swagger-combine ./docs/config.json -o ./docs/swagger.yml - rm -rf tmp-swagger-gen -fi - +cp -r github.com/KYVENetwork/chain/* ./ rm -rf github.com + +swagger-combine ./docs/config.json -o ./docs/swagger.yml +rm -rf tmp-swagger-gen +d \ No newline at end of file