mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
20 lines
501 B
Python
20 lines
501 B
Python
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
|
load("//:hack/utils.bzl", "render_deps")
|
|
|
|
def react_library(name, deps = [], **kwargs):
|
|
ts_library(
|
|
name = name,
|
|
srcs = native.glob(
|
|
[
|
|
"*.ts",
|
|
"*.tsx",
|
|
],
|
|
exclude = native.glob([
|
|
"*.spec.ts*",
|
|
"*.story.tsx",
|
|
"*.stories.tsx",
|
|
]),
|
|
),
|
|
deps = render_deps(deps),
|
|
**kwargs
|
|
)
|