feat: add phase 7 bun_install module extension

This commit is contained in:
Eric
2026-03-04 07:52:24 +00:00
committed by eric
parent 2ad8866185
commit 2ccb43d04b
5 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
load("@rules_shell//shell:sh_test.bzl", "sh_test")
sh_test(
name = "bun_install_extension_shape_test",
srcs = ["extension_shape_test.sh"],
args = ["$(location //bun:extensions.bzl)"],
data = ["//bun:extensions.bzl"],
)

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
extension_file="$1"
grep -q 'bun_install = module_extension(' "${extension_file}"
grep -q 'tag_classes = {"install": _install}' "${extension_file}"
grep -q '"package_json": attr.string(mandatory = True)' "${extension_file}"
grep -q '"bun_lockfile": attr.string(mandatory = True)' "${extension_file}"