MOVED to https://github.com/bazelbuild/rules_nodejs/tree/3.x/third_party/github.com/bazelbuild/rules_typescript
Now that rules_nodejs 0.16.8 supports installing Bazel workspaces out of npm packages, rules_typescript uses this mechanism.
BREAKING CHANGES
@bazel/typescript
and/or @bazel/karma
and call the installer with
load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
install_bazel_dependencies()
after your yarn_install
or npm_install
is done. See the updated README.md.ts_web_test
, ts_web_test_suite
) are now loaded from @build_bazel_rules_karma
workspace rather than @build_bazel_rules_typescript
Other updates
rules_typescript_dependencies
function is deprecated. You can remove usage of it.karma_web_test
and karma_web_test_suite
which allow you to pass a karma.conf.js
. These are needed for testing on Saucelabs. We don't have API docs for these yet, because our doc publishing is affected by refactoring (we expect these will move to rules_nodejs for the next release). See usage in examples/testing
devserver
binary runs on Windows, but we are still making fixes to the rules to work on Windows.tsc_wrapped
binary is getting a special hook to run Angular's new ngtsc
compileribazel
were released in Karma 4.0.0Add ts_devserver
support for injecting script tags and minor bug fixes
Release 0.21 had a major flaw. First, during a refactoring we lost the test coverage for compilation failures. Then, during a refactoring we accidentally dropped the diagnostic gathering, so TypeScript files were not actually type-checked.
This release also fixes a warning about deprecated Buffer constructor
BREAKING CHANGES:
rules_typescript_dependencies() will no longer install transitive dependencies of build_bazel_rules_nodejs. User WORKSPACE files will now need to install rules_nodejs transitive deps directly:
load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dependencies")
rules_nodejs_dependencies()
This release contained a critical bug: no TypeScript diagnostics were gathered, including type-checking
Features:
--nolegacy_external_runfiles
bazel flagrules_webtesting
Firefox karma teststs_web_test
http://tsetse.info/api/karma/ts_web_test.html#ts_web_test.runtime_deps
Breaking changes: If you use the internal API of tsc_wrapped you need to update the CompilerHost constructor calls to account for a removed parameter.
DO NOT USE
Broken release, use 0.20.1 instead.
BREAKING CHANGES:
Breaking changes:
@
support in labels@build_bazel_rules_typescript//:karma/karma
is removed, you can use @npm//:@bazel/karma/karma
insteadBreaking Changes:
ts_library
and ts_web_test_suite
rules attributes now default to use bazel managed deps downstream and depend on a user installing @bazel/typescript
and @bazel/karma
deps with yarn_install
or npm_install
into an @npm
workspace. See README for more information.