Releases: aspect-build/rules_ts
Releases · aspect-build/rules_ts
v1.0.0-rc6
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.0-rc6")
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 = "1ed2dc702b3d5fcf2b8e6ca4a5dae23fbc8e5570643d2a5cf8f5f09c7c44bc15",
strip_prefix = "rules_ts-1.0.0-rc6",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc6.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: 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
Full Changelog: v1.0.0-rc5...v1.0.0-rc6
v1.0.0-rc5
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "1149d4cf7f210de67e0fc5cd3e8f624de3ee976ac05af4f1484e57a74c12f2dc",
strip_prefix = "rules_ts-1.0.0-rc5",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc5.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
- 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
Full Changelog: v1.0.0-rc4...v1.0.0-rc5
v1.0.0-rc4
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "743f0e988e4e3f1e25e52c79f9dc3da1ddd77507ae88787ae95b4e70c537872b",
strip_prefix = "rules_ts-1.0.0-rc4",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc4.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
- 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
New Contributors
- @vpanta made their first contribution in #129
- @tsawada made their first contribution in #154
- @sallustfire made their first contribution in #174
Full Changelog: v1.0.0-rc3...v1.0.0-rc4
v1.0.0-rc3
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "3eb3171c26eb5d0951d51ae594695397218fb829e3798eea5557814723a1b3da",
strip_prefix = "rules_ts-1.0.0-rc3",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc3.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: 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
Full Changelog: v1.0.0-rc2...v1.0.0-rc3
v1.0.0-rc2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "b491ff46f8d9167986033552bdd7b39106fac5a1cbc4d5ea44582d3d71557519",
strip_prefix = "rules_ts-1.0.0-rc2",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc2.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,
)
rules_js 1.1.0 is required for this release.
What's Changed
- 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
Full Changelog: v1.0.0-rc1...v1.0.0-rc2
v1.0.0-rc1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "1945d5a356d0ec85359dea411467dec0f98502503a53798ead7f54aef849598b",
strip_prefix = "rules_ts-1.0.0-rc1",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc1.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
Full Changelog: v1.0.0-rc0...v1.0.0-rc1
v1.0.0-rc0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "01a35a9582107fd2ef81795874f57e6ba36bc63d91626c35212651981df6c9d8",
strip_prefix = "rules_ts-1.0.0-rc0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc0.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
New Contributors
- @jstuder-gh made their first contribution in #122
Full Changelog: v0.12.0...v1.0.0-rc0
v0.12.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "bfaad966d3293595b2b1a44b33a12967ee138e414d6c27b7a2656b43ca19ee51",
strip_prefix = "rules_ts-0.12.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.12.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: update to rules_js 1.0.0-rc.3 by @gregmagolan in #110
- chore: update to aspect_bazel_lib_1.9.2 by @gregmagolan in #112
- refactor: update to rules_js 1.0.0-rc.4 by @gregmagolan in #113
Full Changelog: v0.11.0...v0.12.0
v0.11.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "04373a49e49a97521a9fcf35dbca43360c94a84a51553ffbd754d6778a0b512d",
strip_prefix = "rules_ts-0.11.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.11.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
- fix: fix declaration file output with out_dir set by @jbedard in #71
- fix: disable ts worker if custom tsc is provided by @jbedard in #78
- test: add case for types output_group by @thesayyn in #83
- test: add case for declaration_only by @thesayyn in #82
- fix: allow tsc worker read outputs by @thesayyn in #81
- fix: re-enable error when no outputs configured by @alexeagle in #84
- test: add case for declaration_dir, out_dir and root_dir by @thesayyn in #87
- fix: give better error when ts_project should be js_library by @alexeagle in #86
- test: add case for jsx by @thesayyn in #89
- fix: support package.json with type=module by @thesayyn in #90
- perf: minimize the amount fs calls worker makes by @thesayyn in #77
- test: test rootDirs + outDir by @jbedard in #74
- feat: add support for .mts and .cts source files by @jbedard in #92
- chore: format BUILD files with buildifier by @thesayyn in #93
- fix: correctly invalidate failed lookups by @thesayyn in #91
- test: add example of ts_project .d.ts source by @jbedard in #98
- chore: add additional examples and TODOs for issues by @gregmagolan in #100
- chore: update to aspect_bazel_lib 1.8.0 by @gregmagolan in #104
- chore: update to aspect_rules_js to latest commit hash by @gregmagolan in #105
- chore: update to aspect_bazel_lib 1.8.1 by @gregmagolan in #106
- docs: one more reason why ts_project could produce no output by @thesayyn in #107
- chore: update to aspect_bazel_lib 1.9.1 by @gregmagolan in #109
New Contributors
Full Changelog: v0.10.0...v0.11.0
v0.10.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "57aa473c5b4d300adea8eda9c8306519344c4acfcc86a42530cdf23e35cb63d7",
strip_prefix = "rules_ts-0.10.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.10.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
- docs: add example of using 3p npm dep by @alexeagle in #69
- fix: relative path computation handles parent dir by @alexeagle in #70
Full Changelog: v0.9.0...v0.10.0