Skip to content

Commit

Permalink
chore: rename VERSIONS to TOOL_VERSIONS (for consistency with other r…
Browse files Browse the repository at this point in the history
…ule sets) add comment about order
  • Loading branch information
gregmagolan committed Nov 2, 2022
1 parent ef4c2c9 commit 2c0b37b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ts/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Update with:
curl --silent https://registry.npmjs.org/typescript | jq '[.versions[] | select(.version | test("^[0-9.]+$")) | {key: .version, value: .dist.integrity}] | from_entries'
"""
VERSIONS = {

# Versions should be ascending order so TOOL_VERSIONS.keys()[-1] is the latest version.
TOOL_VERSIONS = {
"0.8.0": "sha512-t4DYxzL6Gt3+TRuJXtmh+3KfcY5iSM8J4lzUgfQkTOr78xFbmor79x/dQEGMaiqO2HJBbFGO3RlIaxPzpP5JMA==",
"0.8.1": "sha512-/cfem275IES0o4/zVD1UmXfE3k5j2OAianSI2Oa1gYzWhAJ44OjNlXv3LVIj5EZ0fgks/XBtzp8aXVsaYILTVg==",
"0.8.2": "sha512-rc182AVnpWJ2d6mSAjzALdgEZMJqtsAwPjogw7ch8NRa7iTD8vGG2YoZto1R5Bkt5xCXFcg5SrkRenYtI+poHQ==",
Expand Down
4 changes: 2 additions & 2 deletions ts/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies

load("//ts/private:maybe.bzl", http_archive = "maybe_http_archive")
load("//ts/private:npm_repositories.bzl", "npm_dependencies")
load("//ts/private:versions.bzl", TS_VERSIONS = "VERSIONS")
load("//ts/private:versions.bzl", "TOOL_VERSIONS")

LATEST_VERSION = TS_VERSIONS.keys()[-1]
LATEST_VERSION = TOOL_VERSIONS.keys()[-1]

# WARNING: any additions to this function may be BREAKING CHANGES for users
# because we'll fetch a dependency which may be different from one that
Expand Down

0 comments on commit 2c0b37b

Please sign in to comment.