v2.0.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_ts", version = "2.0.1")
rules_ts_ext = use_extension(
"@aspect_rules_ts//ts:extensions.bzl",
"ext",
dev_dependency = True,
)
rules_ts_ext.deps()
use_repo(rules_ts_ext, "npm_typescript")Using WORKSPACE
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "0f43d06b02895f825ac18a60901e899d91b22a11d44c4008c8383ada6096a4a9",
strip_prefix = "rules_ts-2.0.1",
url = "https://github.com/aspect-build/rules_ts/releases/download/v2.0.1/rules_ts-v2.0.1.tar.gz",
)
##################
# rules_ts setup #
##################
# Fetches the rules_ts 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_ts//ts:repositories.bzl", "rules_ts_dependencies")
rules_ts_dependencies(
# This keeps the TypeScript version in-sync with the editor, which is typically best.
ts_version_from = "//:package.json",
# Alternatively, you could pick a specific version, or use
# load("@aspect_rules_ts//ts:repositories.bzl", "LATEST_TYPESCRIPT_VERSION")
# ts_version = LATEST_TYPESCRIPT_VERSION
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
# Fetch and register node, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
# Register aspect_bazel_lib toolchains;
# If you use npm_translate_lock or npm_import from aspect_rules_js you can omit this block.
load("@aspect_bazel_lib//lib:repositories.bzl", "register_copy_directory_toolchains", "register_copy_to_directory_toolchains")
register_copy_directory_toolchains()
register_copy_to_directory_toolchains()What's Changed
- docs: indicate that aspect configure does proto now by @alexeagle in #443
- chore: update to Aspect Workflows 5.7.5 by @gregmagolan in #444
- chore: limit GHA workflows polling to 1 minute by @gregmagolan in #445
- docs: add troubleshooting note about debugging by @jbedard in #442
- chore: upgrade to Aspect Workflows 5.8.0-rc4 by @gregmagolan in #450
- chore: upgrade to Aspect Workflows 5.8.0-rc6 by @gregmagolan in #452
- chore: upgrade to Aspect Workflows 5.8.0-rc7 by @gregmagolan in #453
- chore: upgrade to Aspect Workflows 5.8.0-rc8 by @gregmagolan in #454
- chore: bump remote cache size & shard count & turn on k8s observability by @gregmagolan in #455
- chore: set --remote_download_minimal and --nobuild_runfile_links for all Workflows tasks by @gregmagolan in #456
- chore: bump remote cache to 384 gb by @gregmagolan in #457
- chore: upgrade to Aspect Workflows 5.8.0-rc11 by @gregmagolan in #458
- chore: update to Bazel 6.3.2 and Aspect CLI 5.7.2 by @gregmagolan in #459
- chore: upgrade to Aspect Workflows 5.8.0-rc12 by @gregmagolan in #460
- chore: upgrade to Aspect Workflows 5.8.0-rc14 by @gregmagolan in #461
- chore: upgrade to Aspect Workflows 5.8.0 by @gregmagolan in #462
- chore: reduce warming job frequency to once per day by @gregmagolan in #463
- chore: fixup warming cron --- gha does not support timezone by @gregmagolan in #464
- chore: update warming job to aspect-build/[email protected] by @gregmagolan in #465
- fix: ensure ts_project does not propagate testonly to build_test by @sallustfire in #469
- chore: upgrade to Aspect Workflows 5.8.2 by @gregmagolan in #470
- chore: update buildifier targets used by Aspect Workflows by @gregmagolan in #472
- chore: upgrade to Aspect Workflows 5.8.3 by @gregmagolan in #473
- refactor: put 'git archive' config in .gitattributes by @alexeagle in #475
- chore: mirror ts version 5.2.2 by @jbedard in #477
- chore: add automation for TS version mirroring by @alexeagle in #480
- fix: allow dict() tsconfig defined at analysis time by @jbedard in #478
Full Changelog: v2.0.0...v2.0.1