haveno-ts/scripts/build_dist.sh
woodser befdf7b33e
Export protobuf types (#100)
* update to monero-javascript v0.7.0
* bump to version v0.0.2
* terminate monero-javascript worker at end of tests
2022-05-10 09:55:41 -04:00

11 lines
353 B
Bash
Executable File

#!/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