Skip to content

v0.8.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 31 May 17:54
· 1196 commits to main since this release
ef86fcc

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "06dd11130f05df3e8b9aa8cc1b93577e88f540cd4ece8f00035109cc17dcf5ff",
    strip_prefix = "rules_js-0.8.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.8.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

  • fix: add js_package of npm package to the data of the generated js_binaries for its bins by @gregmagolan in #122
  • fix: generate package qualified labels in generated bin targets by @gregmagolan in #123
  • chore: update to aspect_bazel_lib 0.12.0 by @gregmagolan in #126
  • fix: generate fully qualified (workspace name + package) labels in generated bin targets by @gregmagolan in #124
  • feat: add @npm//@scope and @npm//link/path/@scope targets by @gregmagolan in #125
  • feat: add additional verbose output to js_binary launcher to indicate cwd by @gregmagolan in #129
  • refactor: use pnpm workspaces for main WORKSPACE pnpm-lock.yaml file by @gregmagolan in #128
  • feat: promote run_js_binary to the public API by @gregmagolan in #131
  • fix: don't pop data from kwargs attribute in generated bins build (run_js_binary) macro by @gregmagolan in #132
  • refactor: reorganize example into multiple examples by @alexeagle in #136
  • feat: add log_level attribute to js_binary and run_js_binary by @gregmagolan in #135
  • refactor: move npm_deps dependencies into its workspace package by @alexeagle in #137
  • Add example showing mocha integration by @jfirebaugh in #119
  • feat: simplify public API link_js_package and package label helpers by @gregmagolan in #139

New Contributors

Full Changelog: v0.7.2...v0.8.0