Skip to content

Commit

Permalink
fix: forward srcs, deps and visibility of dummy_bzl_library to the fi…
Browse files Browse the repository at this point in the history
…legroup when publishing
  • Loading branch information
mattem authored and alexeagle committed Jan 29, 2021
1 parent 4d8f15c commit 0466084
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ js_library = _js_library
# ANY RULES ADDED HERE SHOULD BE DOCUMENTED, see index.for_docs.bzl

# Allows us to avoid a transitive dependency on bazel_skylib from leaking to users
def dummy_bzl_library(name, **kwargs):
native.filegroup(name = name)
def dummy_bzl_library(name, srcs = [], deps = [], visibility = ["//visibility:public"], **kwargs):
native.filegroup(
name = name,
srcs = srcs + deps,
visibility = visibility,
)

# @unsorted-dict-items
COMMON_REPLACEMENTS = {
Expand Down

0 comments on commit 0466084

Please sign in to comment.