fix: ts-proto: --ts_proto_opt=env=node
This commit is contained in:
parent
070e76bcc7
commit
a0fab83cef
@ -40,6 +40,7 @@ def gen(c, target="types"):
|
|||||||
cmd = "protoc --plugin=protoc-gen-ts_proto={} " \
|
cmd = "protoc --plugin=protoc-gen-ts_proto={} " \
|
||||||
"--ts_proto_opt=outputServices=grpc-js " \
|
"--ts_proto_opt=outputServices=grpc-js " \
|
||||||
"--ts_proto_opt=esModuleInterop=true " \
|
"--ts_proto_opt=esModuleInterop=true " \
|
||||||
|
"--ts_proto_opt=env=node " \
|
||||||
"--ts_proto_out={} -I pb {}".format(
|
"--ts_proto_out={} -I pb {}".format(
|
||||||
plugin_path, out_dir, "./pb/bdware/bdledger/api/*.proto")
|
plugin_path, out_dir, "./pb/bdware/bdledger/api/*.proto")
|
||||||
print(cmd)
|
print(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user