v6.1.0
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_nodejs", version = "6.1.0")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_nodejs",
sha256 = "dddd60acc3f2f30359bef502c9d788f67e33814b0ddd99aa27c5a15eb7a41b8c",
strip_prefix = "rules_nodejs-6.1.0",
url = "https://github.com/bazelbuild/rules_nodejs/releases/download/v6.1.0/rules_nodejs-v6.1.0.tar.gz",
)
What's Changed
- Update presubmit.yml by @alexeagle in #3719
- chore: disable RBE on CI to work-around cc toolchain failures at HEAD by @gregmagolan in #3726
- refactor: remove unused run_npm from NodeInfo provider by @gregmagolan in #3725
- Update NodeJS Versions by @mattem in #3723
- chore: misc cleanup by @gregmagolan in #3729
- chore: upgrade to Bazel 7.1.1 by @gregmagolan in #3728
- chore: re-enable macos on Bazel CI by @gregmagolan in #3732
- fix: support node_version_from_nvmrc with bzlmod by @gregmagolan in #3730
- fix: use default node url if the user happens to explicitly set [] by @gregmagolan in #3731
- chore: add .bazelversion to e2e/smoke by @gregmagolan in #3733
- chore: correct NodeJS spelling to Node.js by @gregmagolan in #3734
- chore: support local development on MacOS ARM by @gregmagolan in #3735
- feat: update node toolchain to provide File objects by @gregmagolan in #3736
- chore: upgrade GHA CI to bazel-contrib/.github/.github/workflows/bazel.yaml@v6 by @gregmagolan in #3737
- refactor: deprecate npm_files list attribute in favor of npm_srcs depset by @gregmagolan in #3738
- refactor: all public rules and macros should be prefixed with 'nodejs_' to match convention by @gregmagolan in #3739
- refactor: rename NodeInfo npm_srcs to npm_sources by @gregmagolan in #3740
- fix: fixup backward compat on npm_path by @gregmagolan in #3741
- Update Node.js Versions by @mattem in #3742
Full Changelog: v6.0.5...v6.1.0