v1.15.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_js", version = "1.15.1")
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 = "928ba25fa82cfe7983f89118677413dc74dbc5d0360fa969da07ff22a9306052",
strip_prefix = "rules_js-1.15.1",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.15.1.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
- chore: update bcr homepage by @alexeagle in #760
- feat: automatically update pnpm lockfile via bzlmod api by @kormide in #763
- docs: update location of migration guide by @alexeagle in #755
- fix(deps): update dependency mocha to v10.2.0 by @renovate in #733
- fix: fix a bug where a different state file hash was produced under bzlmod by @kormide in #768
- fix: support quoted npmrc values by @jbedard in #765
- chore(deps): update com_github_ash2k_bazel_tools digest to 4e045b9 by @renovate in #762
- chore(deps): update dependency aspect_bazel_lib to v1.21.0 by @renovate in #774
- chore(deps): update dependency jsonwebtoken to 9.0.0 [security] by @renovate in #766
- renovate: correct grouping of minor/patch releases by @jbedard in #775
- chore: add pnpm versions 7.18.0 through 7.25.0 by @jbedard in #777
- build: remove workaround for fixed pnpm issue by @jbedard in #776
- build: bump @kubernetes/client-node dep due to failure by @gregmagolan in #778
- chore: update failing //npm/private/test:write_npm_translate_lock diff test by @gregmagolan in #779
- chore: update devDeps of @kubernetes/client-node needed for prepare lifecycle hook to match the commit hash we're pulling by @gregmagolan in #780
- fix(deps): update dependency botframework-connector to v4.19.0 by @renovate in #732
- fix(deps): update patch updates by @renovate in #782
- chore(deps): update @types by @renovate in #783
- ci: run e2e/update_pnpm_lock under bzlmod by @kormide in #767
- chore(deps): update dependency aspect_bazel_lib to v1.21.2 by @renovate in #788
- chore: fix typo in docs by @gregmagolan in #794
- chore: update to Aspect CLI 5.1.2 by @gregmagolan in #795
- feat: support npm auth under bzlmod by @kormide in #797
- chore: run e2e/package_json_module under bzlmod by @kormide in #799
- feat: support npm_package_lock and preupdate in bzlmod by @kormide in #798
- feat: improve performance of npm linking & npm_package with hardlinks by @gregmagolan in #789
- feat: support bins attr in bzlmod by @kormide in #800
- fix: improve performance of npm_package with removal of .to_list() on additional_files by @gregmagolan in #761
- chore: add missing bzl_library for expand_template.bzl by @gregmagolan in #802
- chore: remove unnecessary if statement in npm_package.bzl by @gregmagolan in #804
- fix: use correct default values for exclude_srcs_packages and exclude_srcs_patterns in npm_package (#806)
Full Changelog: v1.14.0...v1.15.1