v1.0.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_swc", version = "1.0.1")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "b647c7c31feeb7f9330fff08b45f8afe7de674d3a9c89c712b8f9d1723d0c8f9",
strip_prefix = "rules_swc-1.0.1",
url = "https://github.com/aspect-build/rules_swc/releases/download/v1.0.1/rules_swc-v1.0.1.tar.gz",
)
###################
# rules_swc setup #
###################
# Fetches the rules_swc dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_swc//swc:dependencies.bzl", "rules_swc_dependencies")
rules_swc_dependencies()
# Fetches a SWC cli from
# https://github.com/swc-project/swc/releases
# If you'd rather compile it from source, you can use rules_rust, fetch the project,
# then register the toolchain yourself. (Note, this is not yet documented)
load("@aspect_rules_swc//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains")
swc_register_toolchains(
name = "swc",
swc_version = LATEST_SWC_VERSION,
)
What's Changed
- chore(gha): use reusable workflows by @alexeagle in #193
- chore: update swc version mirror by @alexeagle in #195
- fix: broken build and tests by @jbedard in #196
- fix: rename LATEST_VERSION to LATEST_SWC_VERSION by @jbedard in #194
- fix: remove swc v1.3.56 by @jbedard in #197
- chore: mirror swc version 1.3.42 by @jbedard in #198
- chore: fix release workflow by @jbedard in #199
Full Changelog: v1.0.0...v1.0.1