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:
parent
3c5deee7ee
commit
f3a96faeae
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
cd tools/
|
cd tools/
|
||||||
./build.sh
|
./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_opt=module=github.com/certusone/wormhole/bridge/pkg \
|
||||||
--go-grpc_out=bridge/pkg/ proto/**/**/**
|
--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/**/**/**
|
||||||
|
|
Loading…
Reference in New Issue