Skip to content

v3.2.3

Choose a tag to compare

@github-actions github-actions released this 14 Jul 18:25
· 59 commits to main since this release

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

# 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

  • test: enable runfiles tree on Windows for e2e/bzlmod by @jbedard in #2886
  • Changes by create-pull-request action by @github-actions[bot] in #2885
  • fix(nextjs): match standalone server copy patterns to build output la… by @imanmalekian31 in #2887
  • Changes by create-pull-request action by @github-actions[bot] in #2889
  • chore: stop pinning to 9.0.2 for Bazel 9 tests by @acozzette in #2882
  • fix(nextjs): add missing dependencies in nextjs_standalone_server by @acozzette in #2890
  • Changes by create-pull-request action by @github-actions[bot] in #2893
  • Changes by create-pull-request action by @github-actions[bot] in #2895
  • fix: resolve npm package store tar toolchain as a Label by @keegancsmith in #2900
  • perf: accumulate JsInfo field depsets directly in npm_package_store by @jbedard in #2906
  • perf: construct JsInfo directly in npm store and link rules by @jbedard in #2907
  • perf: compute directory symlink targets without generic path normalization by @jbedard in #2909
  • ci: run slow jobs on 32core machine by @jbedard in #2911
  • perf: gather terminal package store deps in a single pass by @jbedard in #2905
  • perf: use a dict for linked package store directory membership checks by @jbedard in #2908
  • perf: reduce per-action overhead registering NpmPackageExtract by @jbedard in #2910
  • chore: upgrade aspect_tools_telemetry to 0.4.2 by @jbedard in #2912
  • docs: correct broken anchor links in docstrings for Bazel registry docs by @georgesfarah in #2913
  • docs: update hoist docs to mention pnpm-workspace.yaml by @gzm0 in #2899
  • Changes by create-pull-request action by @github-actions[bot] in #2902

New Contributors

Full Changelog: v3.2.2...v3.2.3