diff --git a/generate-protos.sh b/generate-protos.sh index 6abea3fe2..0267c55f6 100755 --- a/generate-protos.sh +++ b/generate-protos.sh @@ -3,7 +3,7 @@ ( cd tools/ ./build.sh - npm install + npm ci ) ( @@ -27,4 +27,14 @@ tools/bin/buf protoc \ --go-grpc_opt=module=github.com/certusone/wormhole/bridge/pkg \ --go-grpc_out=bridge/pkg/ proto/**/**/** -mkdir -p explorer/src/proto \ No newline at end of file +mkdir -p explorer/src/proto + +tools/bin/buf protoc \ + -Iproto \ + -Ithird_party/googleapis \ + --plugin tools/node_modules/.bin/protoc-gen-ts_proto \ + --ts_proto_opt=esModuleInterop=true \ + --ts_proto_opt=env=browser \ + --ts_proto_opt=forceLong=string \ + --ts_proto_opt=outputClientImpl=grpc-web \ + --ts_proto_out=explorer/src/proto/ proto/**/**/**