12 lines
398 B
Bash
12 lines
398 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
rm -rf ./js-src/generated/
|
||
|
mkdir ./js-src/generated/
|
||
|
protoc --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \
|
||
|
--plugin="protoc-gen-js=./node_modules/.bin/protoc-gen-js" \
|
||
|
--ts_opt=esModuleInterop=true \
|
||
|
--js_out="import_style=commonjs,binary:./js-src/generated" \
|
||
|
--ts_out="./js-src/generated" \
|
||
|
--proto_path="proto" \
|
||
|
$(find proto/ -name '*.proto')
|