Skip to content

v3.0.0-rc5

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Feb 23:58
· 1 commit to main since this release
31384de

Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our Adoption Discussion.

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_js", version = "3.0.0-rc5")

# Translate the pnpm-lock.yaml file to bazel targets
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")

# Allows developers to use the matching pnpm version, for example:
# bazel run -- @pnpm --dir /home/runner/work/rules_js/rules_js install
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm", dev_dependency = True)
use_repo(pnpm, "pnpm")

By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
Optionally you can pin a different version using rules_nodejs:

bazel_dep(name = "rules_nodejs", version = "6.7.3")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "24.13.0")

What's Changed

  • feat: use aspect-build org CI checks by @alexeagle in #2706
  • chore(docs): minor tweaks to be Mintlify-MDX compatible by @alexeagle in #2712
  • fix: convert hex from packageManager integrity to base64 format by @sbarfurth in #2709
  • docs: fix typos and grammar in docstrings by @jbedard in #2714
  • refactor: update pnpm versions by @github-actions[bot] in #2713
  • fix: npm_deps tests on Windows, add a fix for Bazel 9.0.0 #2261 by @Mivr in #2700
  • feat: allow proto_library as js_library#dep by @alexeagle in #2721
  • chore(docs): add API docs for proto by @alexeagle in #2722
  • chore: remove tests from gha which also run on aspect workflows by @jbedard in #2707
  • fix: run npm package target in other repo by @jbedard in #2726
  • chore: mirror external pnpm releases by @github-actions[bot] in #2720

Full Changelog: v3.0.0-rc4...v3.0.0-rc5