Skip to content

Releases: aspect-build/rules_ts

v0.2.1

18 May 21:40
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

WORKSPACE snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_ts",
    sha256 = "0da8f616f58bd79e8b7b0946f96d4adda8b02d3ec9aca33037cecfef316a1597",
    strip_prefix = "rules_ts-0.2.1",
    url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.2.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

  • Allow generated files mixed with sources by @alexeagle in #17
  • make ts_options_validator output deterministc by @alexeagle in #22
  • add example coverage for using 1p/3p deps with types by @alexeagle in #21

Full Changelog: v0.2.0...v0.2.1

v0.2.0

14 May 04:09
d4700cb
Compare
Choose a tag to compare
v0.2.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 = "c2c3557c8159e98f94dcf8e72d4e479a225bd126be5af22e18e45b5b2c67ef5a",
    strip_prefix = "rules_ts-0.2.0",
    url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.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", "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

  • initial commit for gazelle extension by @alexeagle in #1
  • ci: add e2e test asserting that setup works for users by @alexeagle in #3
  • feat: make typescript version selection easier by @alexeagle in #5
  • docs: add docgen for ts repositories by @alexeagle in #6
  • fix: add mnemonic to validate_options by @thesayyn in #9
  • Revert "initial commit for gazelle extension (#1)" by @alexeagle in #11
  • cleanup: remove rules_nodejs interop code by @alexeagle in #13
  • chore: change to LATEST_VERSION matching esbuild,swc,terser by @alexeagle in #12
  • fix: generated tsconfig should reference paths in bazel-out by @alexeagle in #14
  • update rules_js by @alexeagle in #16

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

26 Apr 21:46
Compare
Choose a tag to compare
v0.1.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 = "07e6623b246d2c1d4c4024edb051fc92a824ac5e6029cb19ba639dc6bcd5973b",
    strip_prefix = "rules_ts-0.1.0",
    url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v0.1.0.tar.gz",
)

# 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()

Full Changelog: https://github.com/aspect-build/rules_ts/commits/v0.1.0