From 8c8c37fb7eec886377d7751dad7e173bee0fbade Mon Sep 17 00:00:00 2001 From: cediackermann Date: Wed, 10 Jun 2026 23:50:44 +0200 Subject: [PATCH] build: add Bazel BUILD file Co-Authored-By: Claude Opus 4.8 --- BUILD.bazel | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 BUILD.bazel diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 0000000..3145c41 --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,19 @@ +# Next.js app built with bun, which rules_js cannot consume. This app keeps its +# native `bun`/Next.js build. The filegroup just makes the directory a valid +# Bazel package and exposes sources. +# TODO: for real Bazel builds, generate a package-lock.json and adopt +# aspect_rules_js (https://github.com/aspect-build/rules_js). +filegroup( + name = "srcs", + srcs = glob(["src/**"], allow_empty = True) + glob( + [ + "*.ts", + "*.tsx", + "*.mjs", + "*.js", + "*.json", + ], + allow_empty = True, + ), + visibility = ["//visibility:public"], +)