github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/rules/closure/grpc_closure_js_library.bzl (about) 1 "grpc_closure_js_library.bzl provides a closure_js_library for grpc files." 2 3 load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library") 4 5 def grpc_closure_js_library(**kwargs): 6 """grpc_closure_js_library is a thin wrapper over closure_js_library. 7 8 Args: 9 **kwargs: keyword arguments passed to the closure_js_library. Additional supressions and dependencies are added. 10 """ 11 suppress = kwargs.pop("suppress", []) 12 suppress.append( 13 "JSC_MISSING_REQUIRE_TYPE", 14 ) 15 16 deps = kwargs.pop("deps", []) 17 deps += [ 18 "@com_google_javascript_closure_library//closure/goog/promise", 19 "@com_github_stackb_grpc_js//js/grpc/stream/observer:call", 20 "@com_github_stackb_grpc_js//js/grpc", 21 "@com_github_stackb_grpc_js//js/grpc:api", 22 "@com_github_stackb_grpc_js//js/grpc:options", 23 ] 24 25 closure_js_library( 26 deps = deps, 27 suppress = suppress, 28 **kwargs 29 )