Files
rules_bun/examples/workspace/README.md
eric 481acd9f84
Some checks failed
CI / test (ubuntu-latest, linux-x64) (pull_request) Failing after 31s
CI / test (macos-14, darwin-arm64) (pull_request) Has been cancelled
CI / test (windows-latest, windows) (pull_request) Has been cancelled
test: add bun workspace tests
2026-03-04 09:53:19 +01:00

511 B

workspace example

Minimal Bun workspace-style layout with two packages:

  • @workspace/pkg-a: exports a string helper
  • @workspace/pkg-b: imports from pkg-a and prints the message

The workspace root also defines a Bun catalog pin for lodash, and both packages consume it via "lodash": "catalog:" to keep versions consistent across packages.

This example demonstrates building a target from a workspace-shaped directory tree with Bazel:

bazel build //examples/workspace:pkg_b_bundle