2026-03-04 20:31:59 +01:00
2026-03-04 20:31:36 +01:00
2026-03-04 20:31:59 +01:00
2026-03-04 20:31:59 +01:00
2026-03-04 20:31:59 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:36 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:58 +01:00
2026-03-04 20:31:59 +01:00
2026-03-04 20:31:59 +01:00

rules_bun

Bazel rules for bun.

Current status

Phase 1 bootstrap is in place:

  • Bun toolchain rule and provider (/bun/toolchain.bzl)
  • Platform-specific Bun repository downloads (/bun/repositories.bzl)
  • Toolchain declarations and registration targets (/bun/BUILD.bazel)
  • Smoke test for bun --version (//tests/toolchain_test:bun_version_test)

Phase 2 bootstrap is in place:

  • Repository-rule based bun_install (/internal/bun_install.bzl)
  • Public export via bun/defs.bzl
  • Focused install behavior tests (//tests/install_test:all)

Phase 3 bootstrap is in place:

  • Executable bun_binary rule (/internal/bun_binary.bzl)
  • Public export via bun/defs.bzl
  • Focused JS/TS runnable tests (//tests/binary_test:all)

Phase 4 bootstrap is in place:

  • Test rule bun_test (/internal/bun_test.bzl)
  • Public export via bun/defs.bzl
  • Focused passing/failing test targets (//tests/bun_test_test:all)

Phase 5 bootstrap is in place:

  • Bundle rule bun_bundle (/internal/bun_bundle.bzl)
  • Public export via bun/defs.bzl
  • Focused output/minify tests (//tests/bundle_test:all)

Phase 6 bootstrap is in place:

  • Source grouping rules js_library / ts_library (/internal/js_library.bzl)
  • Transitive deps propagation wired into bun_bundle and bun_test
  • Focused dependency-propagation tests (//tests/library_test:all)

Phase 7 bootstrap is in place:

  • Bzlmod bun_install module extension (/bun/extensions.bzl) using Bazel 9-compatible extension/tag syntax
  • Focused module-extension shape test (//tests/install_extension_test:all)

Phase 8 bootstrap is in place:

  • CI matrix workflow for linux-x64, darwin-arm64, and windows (/.github/workflows/ci.yml)
  • Bazel 9 pin in CI via USE_BAZEL_VERSION=9.0.0
  • Focused CI matrix shape test (//tests/ci_test:all)
Description
Bazel rules for bun
Readme 1.8 MiB
Languages
Starlark 54.2%
Shell 28.2%
JavaScript 14.3%
Nix 1.6%
TypeScript 1%
Other 0.7%