From 565395911a2132539910573649d8d82c707143b0 Mon Sep 17 00:00:00 2001 From: Jess Sullivan Date: Mon, 27 Apr 2026 16:04:40 -0400 Subject: [PATCH 1/4] fix(bazel): resolve tinyland registry deps in standalone build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add the active tinyland Bazel registry before BCR in .bazelrc - rename the generated npm extension repo from generic 'npm' to tummycrypt_tinyland_activitypub_npm - update BUILD.bazel loads to use the module-scoped npm repo - bump bazel_dep versions per dep mapping Validation: typecheck ✓, build ✓, check:package ✓ --- .bazelrc | 2 ++ BUILD.bazel | 4 ++-- MODULE.bazel | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index d2665a2..e4636e3 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,4 +1,6 @@ common --enable_bzlmod +common --registry=https://raw.githubusercontent.com/tinyland-inc/bazel-registry/main +common --registry=https://bcr.bazel.build build --jobs=auto build --worker_sandboxing diff --git a/BUILD.bazel b/BUILD.bazel index eb61749..5839ee6 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -8,8 +8,8 @@ Dual-mode build: works with both pnpm (standalone) and Bazel (CI/production). load("@aspect_rules_js//npm:defs.bzl", "npm_package") load("@aspect_rules_ts//ts:defs.bzl", "ts_project") -load("@npm//:defs.bzl", "npm_link_all_packages") -load("@npm//:vitest/package_json.bzl", vitest_bin = "bin") +load("@tummycrypt_tinyland_activitypub_npm//:defs.bzl", "npm_link_all_packages") +load("@tummycrypt_tinyland_activitypub_npm//:vitest/package_json.bzl", vitest_bin = "bin") npm_link_all_packages(name = "node_modules") diff --git a/MODULE.bazel b/MODULE.bazel index b1d5411..5a7939d 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -11,7 +11,7 @@ bazel_dep(name = "bazel_skylib", version = "1.8.2") bazel_dep(name = "platforms", version = "1.0.0") bazel_dep(name = "rules_nodejs", version = "6.7.3") # Inter-module dependencies -bazel_dep(name = "tummycrypt_tinyland_content_types", version = "0.2.2") +bazel_dep(name = "tummycrypt_tinyland_content_types", version = "0.2.3") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "22.13.1") From df220fb33edb9ca26a90c6eed1d95a7a534f1ca5 Mon Sep 17 00:00:00 2001 From: Jess Sullivan Date: Mon, 27 Apr 2026 16:12:09 -0400 Subject: [PATCH 2/4] fix(bazel): rename npm extension repo name in MODULE.bazel Earlier commit on this branch only updated BUILD.bazel @npm// references but missed updating MODULE.bazel's npm.npm_translate_lock(name = ...) and use_repo(npm, ...) entries. This commit completes the rename. --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 5a7939d..ff4af8f 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -25,14 +25,14 @@ use_repo(pnpm, "pnpm") npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") npm.npm_translate_lock( - name = "npm", + name = "tummycrypt_tinyland_activitypub_npm", data = [ "//:package.json", "//:pnpm-workspace.yaml", ], pnpm_lock = "//:pnpm-lock.yaml", ) -use_repo(npm, "npm") +use_repo(npm, "tummycrypt_tinyland_activitypub_npm") rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext") rules_ts_ext.deps(ts_version = "5.9.3") From 291ff29b64fd84beb4b6d93c7ccaa13b2e08dd90 Mon Sep 17 00:00:00 2001 From: Jess Sullivan Date: Mon, 27 Apr 2026 16:19:12 -0400 Subject: [PATCH 3/4] fix(bazel): remove monorepo //packages/ refs from BUILD.bazel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The standalone repo's bazel_dep edges in MODULE.bazel handle inter-module resolution. The //packages/* references were leftover from monorepo BUILD.bazel generation and don't resolve in standalone builds. Validation: typecheck ✓, build ✓, check:package ✓ --- BUILD.bazel | 2 -- 1 file changed, 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 5839ee6..eac2af7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -3,7 +3,6 @@ BUILD.bazel for @tummycrypt/tinyland-activitypub. Dual-mode build: works with both pnpm (standalone) and Bazel (CI/production). Standalone: cd packages/tinyland-activitypub && pnpm build - Monorepo: bazel build //packages/tinyland-activitypub/... """ load("@aspect_rules_js//npm:defs.bzl", "npm_package") @@ -34,7 +33,6 @@ ts_project( deps = [ ":node_modules", ":node_modules/@types/node", - "//packages/tinyland-content-types:tinyland_content_types", ], visibility = ["//visibility:public"], ) From 8d9092ed22242c15664fb1ee666c5465a8b7174a Mon Sep 17 00:00:00 2001 From: Jess Sullivan Date: Mon, 27 Apr 2026 16:27:16 -0400 Subject: [PATCH 4/4] ci: use authenticated Bazel package workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ea4790..04664e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ permissions: packages: read jobs: package: - uses: tinyland-inc/ci-templates/.github/workflows/js-bazel-package.yml@21e0093a7586931ee69d716387e00556c6da7738 + uses: tinyland-inc/ci-templates/.github/workflows/js-bazel-package.yml@693ab956344da932b8a84798dea1385cf517efd7 with: runner_mode: shared shared_runner_labels_json: ${{ vars.PRIMARY_LINUX_RUNNER_LABELS_JSON }}