laconic-sdk/scripts/create-proto-files.sh

13 lines
270 B
Bash
Raw Normal View History

2022-03-31 10:00:02 +00:00
#!/bin/bash
# NOTE: protoc is required
I=$(pwd)/proto
DEST_TS=$(pwd)/src/proto/
mkdir -p $DEST_TS
protoc \
2023-09-13 15:52:19 +00:00
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \
--ts_out=$DEST_TS \
--proto_path=$I \
$(find $(pwd)/proto/vulcanize -iname "*.proto")