fix: ts-proto: --ts_proto_opt=env=node

This commit is contained in:
Nex Zhu 2021-07-22 18:54:54 +08:00
parent 070e76bcc7
commit a0fab83cef
No known key found for this signature in database
GPG Key ID: 15C6254AD19362B4

View File

@ -40,6 +40,7 @@ def gen(c, target="types"):
cmd = "protoc --plugin=protoc-gen-ts_proto={} " \
"--ts_proto_opt=outputServices=grpc-js " \
"--ts_proto_opt=esModuleInterop=true " \
"--ts_proto_opt=env=node " \
"--ts_proto_out={} -I pb {}".format(
plugin_path, out_dir, "./pb/bdware/bdledger/api/*.proto")
print(cmd)