From f3a96faeae31f1be606ba55226c0998ac877cce3 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 2 Jul 2021 13:01:54 +0200 Subject: [PATCH] tools: reintroduce ts-proto build Switch to "npm ci". This forces npm to use only dependencies explicitly pinned in the lockfile and prevents changes. Change-Id: I59f560bd38b1073a389024696fa4642101bb8c82 --- generate-protos.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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/**/**/**