Skip to content

Commit 50db44f

Browse files
committed
build: update bazel typescript rules
* Updates the Bazel TypeScript rules. * Fixes a test case which doesn't match the name of the upgrade data it runs with (`css-names` --> `css-selectors`) * Removes Bazel version check (the NodeJS rules automatically check the Bazel version based on the version of the NodeJS rules)
1 parent aea43eb commit 50db44f

File tree

6 files changed

+227
-166
lines changed

6 files changed

+227
-166
lines changed

WORKSPACE

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
workspace(name = "angular_material")
22

3-
# Load NodeJS rules. Note that this is technically not needed because
4-
# `rules_typescript_dependencies()` would also load the NodeJS rules, but we specifically need
5-
# at least v0.14.1 which includes: https://github.com/bazelbuild/rules_nodejs/pull/341
3+
# Add NodeJS rules (explicitly used for sass bundle rules)
64
http_archive(
75
name = "build_bazel_rules_nodejs",
8-
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.14.1.zip",
9-
strip_prefix = "rules_nodejs-0.14.1",
10-
sha256 = "813eb51733d3632f456f3bb581d940ed64e80dab417595c93bf5ad19079898e2"
6+
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.14.2.zip",
7+
strip_prefix = "rules_nodejs-0.14.2",
8+
sha256 = "af481421c9e74f754a693a8bf5e9409484e38cf7be6f73f85879bdc7ed1b1d82",
119
)
1210

1311
# Add TypeScript rules
1412
http_archive(
1513
name = "build_bazel_rules_typescript",
16-
url = "https://github.com/bazelbuild/rules_typescript/archive/0.18.0.zip",
17-
strip_prefix = "rules_typescript-0.18.0",
18-
sha256 = "4726e07a2f8d23b5e3af166f3b2a6e8aa75adad94b35ab4d959e8fe875f90272",
14+
url = "https://github.com/bazelbuild/rules_typescript/archive/0.19.1.zip",
15+
strip_prefix = "rules_typescript-0.19.1",
16+
sha256 = "91a03623a03a463ffd62cea3f7a384c2f298af6438d5d153fc4d69aa5665b53d",
1917
)
2018

2119
# Fetch transient dependencies of the TypeScript bazel rules.
@@ -35,10 +33,7 @@ sass_repositories()
3533

3634
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
3735
# your npm dependencies. You must still run the package manager.
38-
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories",
39-
"npm_install")
40-
41-
check_bazel_version("0.15.0")
36+
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")
4237
node_repositories()
4338

4439
# Use Bazel managed node modules. See more below:

0 commit comments

Comments
 (0)