Skip to content

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 18:42
· 94 commits to main since this release
b235696

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.2.0")

# 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

  • Changes by create-pull-request action by @github-actions[bot] in #2847
  • Changes by create-pull-request action by @github-actions[bot] in #2849
  • test: add assert_tar_listing() tests across all bazel versions by @jbedard in #2850
  • feat: streamline invocation of binaries from npm and update examples by @acozzette in #2846
  • fix: always use the target platform for tool in js_run_devserver by @acozzette in #2853
  • Changes by create-pull-request action by @github-actions[bot] in #2854
  • Changes by create-pull-request action by @github-actions[bot] in #2856
  • feat: add flag controlling the default for use_execroot_entry_point by @acozzette in #2837
  • chore: migrate to Aspect CLI AXL tasks on ephemeral GHA runners by @gregmagolan in #2858
  • chore: bump aspect-cli to v2026.22.15 by @gregmagolan in #2860
  • chore: bump aspect-cli to v2026.22.17 by @gregmagolan in #2862
  • chore: bump aspect-cli to v2026.22.23 by @gregmagolan in #2866
  • chore: bump aspect-cli to v2026.22.29 by @gregmagolan in #2867
  • chore: bump Aspect CLI to 2026.22.39 by @gregmagolan in #2869
  • ci: adopt aspect-build/setup-aspect by @gregmagolan in #2870
  • chore: align buildifier config with aspect-cli; bump CLI to 2026.22.44 by @gregmagolan in #2871
  • docs: expand and update documentation on use_execroot_entry_point by @acozzette in #2872
  • chore: fix broken docs.aspect.build links by @kapunahelewong in #2770
  • Changes by create-pull-request action by @github-actions[bot] in #2859
  • fix: watch pnpm-workspace.yaml by @gzm0 in #2863

Full Changelog: v3.1.2...v3.2.0