Part of https://www.notion.so/Implement-stacks-1b5a6b22d472806a82f5dafed6955138 Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: #4 Co-authored-by: ishavenikar <ishavenikar@noreply.git.vdb.to> Co-committed-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
21 lines
427 B
Bash
Executable File
21 lines
427 B
Bash
Executable File
#!/bin/bash
|
|
# NOTE: protoc is required
|
|
|
|
set -e
|
|
|
|
REPO_ROOT=$(pwd)
|
|
I=$REPO_ROOT/proto
|
|
DEST_TS=$REPO_ROOT/src/proto/
|
|
|
|
echo "Generating protobuf files"
|
|
|
|
mkdir -p $DEST_TS
|
|
|
|
protoc \
|
|
--plugin=$REPO_ROOT/node_modules/.bin/protoc-gen-ts_proto \
|
|
--ts_proto_out=$DEST_TS \
|
|
--proto_path=$I \
|
|
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages" \
|
|
$(find $REPO_ROOT/proto/laconic -type f -iname "*.proto"
|
|
)
|