From a0fab83cef2f7d870ac498b28205408fcf999b45 Mon Sep 17 00:00:00 2001 From: Nex Zhu <4370605+NexZhu@users.noreply.github.com> Date: Thu, 22 Jul 2021 18:54:54 +0800 Subject: [PATCH] fix: ts-proto: --ts_proto_opt=env=node --- grpc/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/grpc/tasks.py b/grpc/tasks.py index 8ac66aa..103adbc 100644 --- a/grpc/tasks.py +++ b/grpc/tasks.py @@ -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)