Skip to content

v0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 05:50
· 1234 commits to main since this release
3d3935b

WORKSPACE snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_rules_js",
    sha256 = "4b58aab5048a6e95491114a456795fa9eb8b74c887047a953a3f712b19de764d",
    strip_prefix = "rules_js-0.7.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.7.0.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//js:npm_import.bzl", "translate_pnpm_lock")

translate_pnpm_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • Use declaration_info factory function by @alexeagle in #104
  • fix: DeclarationInfo needs to include the node_modules symlink to the… by @alexeagle in #107
  • refactor: make nodejs_binary amenable to custom rules by @alexeagle in #106

Full Changelog: v0.6.3...v0.7.0