v1.6.3
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_js", version = "1.6.3")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
use_repo(npm, "npm")
Using WORKSPACE
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "d8eabcd1e05d93147505ea806fa21089926b771d8813f01b92af5dec36617033",
strip_prefix = "rules_js-1.6.3",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.3.tar.gz",
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- renovate: fix aspect rule group, add webpack group, prioritize strict groups by @jbedard in #561
- renovate: fix typo by @jbedard in #562
- cleanup: remove fasterci config by @alexeagle in #566
- chore: account for github actions deprecation by @alexeagle in #565
- fix: always set JsInfo.declarations on npm_link_package_store targets by @jbedard in #563
- chore: consolidate maybe pattern by @gregmagolan in #567
- fix: make js_run_binary more compatible with tools that are sensitive to being found in multiple node_modules trees by @gregmagolan in #564
- chore: update to aspect_bazel_lib 1.15.0 by @gregmagolan in #568
Full Changelog: v1.6.2...v1.6.3