feat: add phase 6 js_library and ts_library bootstrap

Co-authored-by: Eriyc <50216491+Eriyc@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-04 07:31:19 +00:00
parent 244b56a8dd
commit 8218858498
10 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
load("//bun:defs.bzl", "bun_bundle", "bun_test", "ts_library")
ts_library(
name = "helper_lib",
srcs = ["helper.ts"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
bun_bundle(
name = "bundle_with_deps",
entry_points = ["app.ts"],
deps = [":helper_lib"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
sh_test(
name = "bundle_dep_propagation_test",
srcs = ["verify_bundle.sh"],
args = ["$(location :bundle_with_deps)"],
data = [":bundle_with_deps"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
bun_test(
name = "test_with_deps",
srcs = ["app.test.ts"],
deps = [":helper_lib"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)