Releases: aspect-build/rules_ts
v1.2.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.2.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")
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 = "acb20a4e41295d07441fa940c8da9fd02f8637391fd74a14300586a3ee244d59",
strip_prefix = "rules_ts-1.2.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.2.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", "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_VERSION")
# 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,
)
# 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: verbose mode by @alexeagle in #287
- refactor: improve worker correctness and add observability by @thesayyn in #264
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.1.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 = "617cc11d2ae4fe64218323da1c3776e7d25f9f45d88c1addda675d7ad736f683",
strip_prefix = "rules_ts-1.1.0",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.1.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", "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_VERSION")
# 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,
)
# 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
- chore: update bcr homepage by @alexeagle in #288
- feat: assets attribute for ts_project by @alexeagle in #290
- chore: update to Aspect CLI 5.1.2 by @gregmagolan in #291
- chore: update to rules_js 1.15.1 and aspect_bazel_lib 1.23.3 by @gregmagolan in #292
Full Changelog: v1.0.5...v1.1.0
v1.0.5
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.5")
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 = "6406905c5f7c5ca6dedcca5dacbffbf32bb2a5deb77f50da73e7195b2b7e8cbc",
strip_prefix = "rules_ts-1.0.5",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.5.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_VERSION")
# 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
- Document persistent workers in troubleshooting by @alexeagle in #274
- chore: update tool versions to include TS 4.9.4 by @jstuder-gh in #277
- chore: fixup links for new docsite by @gregmagolan in #283
- chore: update to Bazel 6.0.0 and Aspect CLI 5.1.1 by @gregmagolan in #285
- chore: update to aspect_rules_js 1.13.0 by @gregmagolan in #286
Full Changelog: v1.0.4...v1.0.5
v1.0.4
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.4")
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 = "e81f37c4fe014fc83229e619360d51bfd6cb8ac405a7e8018b4a362efa79d000",
strip_prefix = "rules_ts-1.0.4",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.4.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_VERSION")
# 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.11.1 by @gregmagolan in #270
Full Changelog: v1.0.3...v1.0.4
v1.0.3
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.3")
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 = "e731efead7d7ab34eb346e5081245083f75536d89f1686519a40247e8175469c",
strip_prefix = "rules_ts-1.0.3",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.3.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_VERSION")
# 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: bump example package.json deps by @gregmagolan in #255
- doc: update snippet to suggest ts_version_from by @alexeagle in #258
- chore: update to Bazel 6.0.0rc3 by @gregmagolan in #260
- chore: cleanup transpiler_test_suite test by @gregmagolan in #263
- fix: fix cascading rebuilds by @gregmagolan in #261
- chore: bump to Bazel 6.0.0rc4 by @gregmagolan in #265
- chore: update to aspect_bazel_lib 1.8.0 by @gregmagolan in #266
- chore: use Aspect CLI 5.0.2 by @gregmagolan in #267
- fix: report changes in deleted, created, changed order by @thesayyn in #259
- chore: update to rules_js 1.11.0 by @gregmagolan in #269
Full Changelog: v1.0.2...v1.0.3
v1.0.2
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.2")
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 = "5b501313118b06093497b6429f124b973f99d1eb5a27a1cc372e5d6836360e9d",
strip_prefix = "rules_ts-1.0.2",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.2.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 bazel 6.0.0rc2 by @gregmagolan in #249
- chore: mirror recent typescript versions by @alexeagle in #251
- ci: fix broken main by @alexeagle in #252
- chore: update to rules_js 1.8.0 by @gregmagolan in #254
Full Changelog: v1.0.1...v1.0.2
v1.0.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.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")
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 = "ee352308292e3985b4cbce3e1d643001dd9ba9440ceba79ac73613fd8d6c7470",
strip_prefix = "rules_ts-1.0.1",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.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", "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 GH actions release yaml by @gregmagolan in #246
- chore: update to rules_js 1.7.0 & aspect_bazel_lib 1.16.3 by @gregmagolan in #248
Full Changelog: v1.0.0...v1.0.1
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...
v1.0.0-rc8
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.0-rc8")
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 = "8993bfa4e4cae08a2c95df070197a8f3a77f8f186da3031344275254f61e936b",
strip_prefix = "rules_ts-1.0.0-rc8",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc8.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
- 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
Full Changelog: v1.0.0-rc7...v1.0.0-rc8
v1.0.0-rc7
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_ts", version = "1.0.0-rc7")
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 = "555f408bf664e553eb148f22dc2da9e82177413bd08d2d19180340962cf3ff86",
strip_prefix = "rules_ts-1.0.0-rc7",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc7.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_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
Full Changelog: v1.0.0-rc6...v1.0.0-rc7