Skip to content

Releases: aspect-build/rules_ts

v1.0.0-rc6

07 Nov 20:03
1d8658d
Compare
Choose a tag to compare
v1.0.0-rc6 Pre-release
Pre-release

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

Full Changelog: v1.0.0-rc5...v1.0.0-rc6

v1.0.0-rc5

01 Nov 18:56
1eb401b
Compare
Choose a tag to compare
v1.0.0-rc5 Pre-release
Pre-release

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

Full Changelog: v1.0.0-rc4...v1.0.0-rc5

v1.0.0-rc4

14 Oct 01:47
ab68b6b
Compare
Choose a tag to compare
v1.0.0-rc4 Pre-release
Pre-release

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 if root_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

Full Changelog: v1.0.0-rc3...v1.0.0-rc4

v1.0.0-rc3

11 Sep 02:23
9f54ec9
Compare
Choose a tag to compare
v1.0.0-rc3 Pre-release
Pre-release

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

Full Changelog: v1.0.0-rc2...v1.0.0-rc3

v1.0.0-rc2

27 Aug 05:04
e94bef7
Compare
Choose a tag to compare
v1.0.0-rc2 Pre-release
Pre-release

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

Full Changelog: v1.0.0-rc1...v1.0.0-rc2

v1.0.0-rc1

08 Aug 19:58
9deae72
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release

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

08 Aug 00:06
ac234f9
Compare
Choose a tag to compare
v1.0.0-rc0 Pre-release
Pre-release

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

Full Changelog: v0.12.0...v1.0.0-rc0

v0.12.0

02 Aug 23:06
74d54bd
Compare
Choose a tag to compare
v0.12.0 Pre-release
Pre-release

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

Full Changelog: v0.11.0...v0.12.0

v0.11.0

30 Jul 04:07
945cbd9
Compare
Choose a tag to compare
v0.11.0 Pre-release
Pre-release

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

28 Jun 19:33
Compare
Choose a tag to compare
v0.10.0 Pre-release
Pre-release

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