export protobuf types

This commit is contained in:
woodser 2022-05-08 16:36:17 -04:00
parent 5d89d3973f
commit e64e9b2ca7
18 changed files with 70646 additions and 41131 deletions

11
scripts/build_dist.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# run typescript compiler
tsc
# copy protobuf models to dist
mkdir -p dist/protobuf || exit 1
cp src/protobuf/grpc_pb.d.ts dist/protobuf/grpc_pb.d.ts || exit 1
cp src/protobuf/grpc_pb.js dist/protobuf/grpc_pb.js || exit 1
cp src/protobuf/pb_pb.d.ts dist/protobuf/pb_pb.d.ts || exit 1
cp src/protobuf/pb_pb.js dist/protobuf/pb_pb.js || exit 1