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/.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 }} diff --git a/BUILD.bazel b/BUILD.bazel index eb61749..eac2af7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -3,13 +3,12 @@ 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") 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") @@ -34,7 +33,6 @@ ts_project( deps = [ ":node_modules", ":node_modules/@types/node", - "//packages/tinyland-content-types:tinyland_content_types", ], visibility = ["//visibility:public"], ) diff --git a/MODULE.bazel b/MODULE.bazel index b1d5411..ff4af8f 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") @@ -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")