Skip to content

v3.5.1

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Sep 22:32
· 7 commits to main since this release
0d68873

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

# 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

  • chore: mirror external releases by @github-actions[bot] in #3037
  • test: add some more characterization tests for fixed_args behavior by @acozzette in #3038
  • chore: mirror external releases by @github-actions[bot] in #3043
  • fix: pass bash's default PATH to js_binary child processes by @acozzette in #3045
  • chore: mirror external releases by @github-actions[bot] in #3050
  • fix: handle an absolute BAZEL_BINDIR correctly (#3046) by @acozzette in #3047

Full Changelog: v3.5.0...v3.5.1