feat: bun_script
Some checks failed
CI / test (ubuntu-latest, linux-x64) (push) Failing after 39s
Docs Pages / deploy (push) Failing after 37s
CI / test (macos-14, darwin-arm64) (push) Has been cancelled
CI / test (windows-latest, windows) (push) Has been cancelled

This commit is contained in:
Eric
2026-03-06 19:51:52 +01:00
committed by eric
parent 5e8ec20b2e
commit d8e40f7df2
17 changed files with 222 additions and 111 deletions

View File

@@ -1,7 +1,9 @@
"""Lightweight JS/TS source grouping rules."""
BunSourcesInfo = provider(fields = ["transitive_sources"])
BunSourcesInfo = provider(
"Provides transitive sources for Bun libraries.",
fields = ["transitive_sources"],
)
def _bun_library_impl(ctx):
transitive_sources = [
@@ -18,7 +20,6 @@ def _bun_library_impl(ctx):
DefaultInfo(files = all_sources),
]
js_library = rule(
implementation = _bun_library_impl,
doc = "Aggregates JavaScript sources and transitive Bun source dependencies.",