Skip to content

Commit

Permalink
refactor: rename LATEST_VERSION to LATEST_SWC_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed May 1, 2023
1 parent bba996c commit 59fec9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ load("//swc:dependencies.bzl", "rules_swc_dependencies")
# Fetch our "runtime" dependencies which users need as well
rules_swc_dependencies()

load("//swc:repositories.bzl", "LATEST_VERSION", "swc_register_toolchains")
load("//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains")

swc_register_toolchains(
name = "swc",
swc_version = LATEST_VERSION,
swc_version = LATEST_SWC_VERSION,
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_jq_toolchains")
Expand Down
4 changes: 2 additions & 2 deletions e2e/smoke/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ rules_swc_dependencies()
# 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_VERSION", "swc_register_toolchains")
load("@aspect_rules_swc//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains")

swc_register_toolchains(
name = "swc",
swc_version = LATEST_VERSION,
swc_version = LATEST_SWC_VERSION,
)
5 changes: 4 additions & 1 deletion swc/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ load("//swc/private:toolchains_repo.bzl", "PLATFORMS", "toolchains_repo")
load("//swc/private:versions.bzl", "TOOL_VERSIONS")

# Expose as Public API
LATEST_VERSION = TOOL_VERSIONS.keys()[0]
LATEST_SWC_VERSION = TOOL_VERSIONS.keys()[0]

# TODO(2.0): remove this alias
LATEST_VERSION = LATEST_SWC_VERSION

_DOC = "Fetch external dependencies needed to run the SWC cli"
_ATTRS = {
Expand Down

0 comments on commit 59fec9c

Please sign in to comment.