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
This commit is contained in:
Leo 2021-07-02 13:01:54 +02:00
parent 3c5deee7ee
commit f3a96faeae
1 changed files with 12 additions and 2 deletions

View File

@ -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
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/**/**/**