mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
3d8e37e646
fix possibly undefined typescript checks rebuild protobuf TS definitions
13 lines
516 B
Bash
Executable File
13 lines
516 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# generate imports for haveno services and types using grpc-web
|
|
cd ./config || exit 1
|
|
protoc -I=./ *.proto --js_out=import_style=commonjs,binary:./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./ || exit 1
|
|
cd ../
|
|
|
|
# move imports to src folder
|
|
mv ./config/grpc_pb.d.ts ./src/protobuf || exit 1
|
|
mv ./config/grpc_pb.js ./src/protobuf || exit 1
|
|
mv ./config/pb_pb.d.ts ./src/protobuf || exit 1
|
|
mv ./config/pb_pb.js ./src/protobuf || exit 1
|
|
mv ./config/GrpcServiceClientPb.ts ./src/protobuf || exit 1 |