v1.0.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.0")
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")
use_repo(rules_ts_ext, "npm_google_protobuf")
use_repo(rules_ts_ext, "npm_at_bazel_worker")
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 = "f3f0d0a92b0069f8d1bf6a0e26408bd591a8626166db3f88e8d971ffed8f59ba",
strip_prefix = "rules_ts-1.0.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0.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", "LATEST_VERSION", "rules_ts_dependencies")
rules_ts_dependencies(ts_version = LATEST_VERSION)
# 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,
)
What's Changed
- chore(deps): update dependency io_bazel_stardoc to v0.5.2 by @renovate in #116
- chore(deps): update dependency bazel_gazelle to v0.26.0 by @renovate in #118
- chore(deps): update dependency rules_nodejs to v5.5.3 by @renovate in #117
- chore(deps): update dependency io_bazel_rules_go to v0.34.0 by @renovate in #120
- chore(deps): update dependency bazel_skylib to v1.2.1 by @renovate in #119
- refactor: make fstree handle watchers by @thesayyn in #108
- fix: add .d.mts/.d.cts in declaration info by @jstuder-gh in #122
- chore: update to rules_js 1.0.0 by @gregmagolan in #123
- fix: follow symlinks in getDirectories by @thesayyn in #125
- fix: ensure extends paths are relative by @alexeagle in #126
- chore: update to bazel 5.2.0 by @gregmagolan in #135
- chore: update to rules_js 1.1.0 by @gregmagolan in #133
- chore: upgrade to typescript 4.8.2 by @gregmagolan in #136
- chore: add CI on RBE by @gregmagolan in #137
- ci: run PR workflow on main repo and not forks by @jbedard in #142
- chore: update to rules_js 1.1.2 by @gregmagolan in #144
- chore(deps): update dependency bazel_skylib to v1.3.0 by @renovate in #143
- ci: run on pull_request instead of pull_request_target by @jbedard in #145
- fix: check for dangling symlinks by @thesayyn in #146
- fix: add file info to error for
tsc
overreach by @vpanta in #129 - fix:
ts_project
fails ifroot_dir
used deep in source tree by @vpanta in #130 - chore(deps): update dependency io_bazel_rules_go to v0.35.0 by @renovate in #148
- chore(deps): update dependency rules_nodejs to v5.5.4 by @renovate in #147
- chore: update to aspect_bazel_lib 1.11.8 by @gregmagolan in #149
- chore(deps): remove bazel-integration-testing by @jbedard in #153
- chore(deps): update dependency aspect_bazel_lib to v1.12.0 by @renovate in #155
- chore(deps): update dependency aspect_rules_js to v1.3.1 by @renovate in #156
- docs: mention --worker_sandboxing incompatibility by @tsawada in #154
- chore: update to aspect_bazel_lib 1.12.1 by @gregmagolan in #164
- chore(deps): update dependency aspect_rules_js to v1.4.0 by @renovate in #165
- chore: add example --config=debug settings to .bazelrc.common and example debuggle target with sourcemaps back to .ts sources by @gregmagolan in #168
- chore(deps): update dependency rules_nodejs to v5.6.0 by @renovate in #157
- fix: report failedLookups twice by @thesayyn in #169
- test: add path_mapping example by @jbedard in #172
- fix: validate preserveSymlinks tsconfig option is not set by @jbedard in #171
- fix: allow composite projects by @alexeagle in #176
- refactor: TsConfigInfo uses depsets by @alexeagle in #178
- fix: validate tsconfig dictionary values by @jbedard in #173
- Chore/export ts config by @sallustfire in #174
- fix: prevent worker from running oom by @thesayyn in #182
- fix: prefix host call by @thesayyn in #184
- fix: remove unused validate_options(has_local_deps) by @jbedard in #200
- fix: .tsbuildinfo is not written in subsequent builds by @thesayyn in #187
- chore: account for github actions deprecation by @alexeagle in #201
- fix(ts_lib): omit "." segments in path joining by @alexeagle in #205
- fix(docs): introduce tsc_test example by @alexeagle in #207
- chore: rename declaration_only example by @alexeagle in #208
- feat: add ts_project(deps) validation ensuring all deps of declarations by @jbedard in #199
- docs: rename json example to match TS compiler option by @alexeagle in #210
- docs: cleanup declaration_dir example by @alexeagle in #209
- test: add case for filegroup of srcs by @alexeagle in #211
- docs: show example of different module outputs by @alexeagle in #212
- docs: add custom compiler example by @alexeagle in #213
- docs: add root_dir example by @alexeagle in #214
- docs: improve readability: extract transpiler/tsconfig to standalone by @alexeagle in #215
- chore: fixes to doc presentation by @alexeagle in #216
- chore: update to Bazel 6.0.0rc1 by @gregmagolan in #217
- fix: fix bzlmod with Bazel 6.0.0rc1 and enable e2e/bzlmod on CI by @alexeagle in #197
- chore: cleanup maybe pattern by @gregmagolan in #218
- fix: support --experimental_allow_unresolved_symlinks flag by @thesayyn in #202
- chore: update workspace deps to latest by @gregmagolan in #221
- chore: rename VERSIONS to TOOL_VERSIONS (for consistency with other rule sets) add comment about order by @gregmagolan in #222
- chore: updates for bzlmod launch by @alexeagle in #229
- fix: document tsc with more heap by @alexeagle in #230
- docs: add troubleshooting guide by @alexeagle in #232
- fix: update deps and fix worker tests by @thesayyn in #226
- chore: update to rules_jasmine 0.2.1 by @gregmagolan in #234
- chore: update to rules_js 1.6.8 by @gregmagolan in #235
- fix: remove /node_modules/. from ignored paths by @thesayyn in #185
- fix: take project rescaling into consideration by @thesayyn in #237
- docs: clarify why --worker_sandboxing does not work by @thesayyn in #241
- test: assert external tsconfig is usable with workers by @thesayyn in #239
- fix: support non-file transpiler srcs by @jbedard in #236
- chore: cleanup macro that was upstreamed by @alexeagle in #243
- fix: disable workers on Windows due to #228 by @gregmagolan in #245
New Contributors
- @jstuder-gh made their first contribution in #122
- @vpanta made their first contribution in #129
- @tsawada made their first contribution in #154
- @sallustfire made their first contribution in #174
Full Changelog: v0.12.0...v1.0.0