Skip to content

Commit cefc2ae

Browse files
alexeaglegregmagolan
authored andcommitted
chore: cleanup some deprecated APIs (#1160)
BREAKING CHANGE: @bazel/typescript and @bazel/karma no longer have a defs.bzl file. Use index.bzl instead. The @Yarn workspace is no longer created. Use @nodejs//:yarn instead. Fixes #1144
1 parent 7231aaa commit cefc2ae

17 files changed

Lines changed: 10 additions & 118 deletions

File tree

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ install_bazel_dependencies()
106106
# With http_archive it only sees releases/download/*.tar.gz urls
107107
git_repository(
108108
name = "build_bazel_rules_typescript",
109-
commit = "5ad356d09a6d7275bfef6f9717274e7dd9cda978",
109+
commit = "fcf33e92a60c2b0613e931d05b305e1d962648e0",
110110
remote = "https://github.com/bazelbuild/rules_typescript.git",
111111
)
112112

examples/angular/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ load("@npm_bazel_karma//:browser_repositories.bzl", "browser_repositories")
7979
browser_repositories()
8080

8181
# Setup the rules_typescript tooolchain
82-
load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace")
82+
load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
8383

8484
ts_setup_workspace()
8585

examples/angular/e2e/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@npm_bazel_protractor//:index.bzl", "protractor_web_test_suite")
2-
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
2+
load("@npm_bazel_typescript//:index.bzl", "ts_library")
33

44
ts_library(
55
name = "e2e",

examples/angular/src/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@io_bazel_rules_docker//nodejs:image.bzl", "nodejs_image")
55
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
66
load("@npm//history-server:index.bzl", "history_server")
77
load("@npm_angular_bazel//:index.bzl", "ng_module")
8-
load("@npm_bazel_typescript//:defs.bzl", "ts_config", "ts_devserver", "ts_library")
8+
load("@npm_bazel_typescript//:index.bzl", "ts_config", "ts_devserver", "ts_library")
99

1010
package(default_visibility = ["//:__subpackages__"])
1111

examples/angular/src/app/hello-world/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
22
load("@npm_angular_bazel//:index.bzl", "ng_module")
3-
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
3+
load("@npm_bazel_typescript//:index.bzl", "ts_library")
44
load("//tools:defaults.bzl", "ts_web_test_suite")
55

66
package(default_visibility = ["//:__subpackages__"])

examples/angular/src/app/todos/reducers/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
1+
load("@npm_bazel_typescript//:index.bzl", "ts_library")
22

33
package(default_visibility = ["//:__subpackages__"])
44

examples/angular/src/lib/shorten/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
1+
load("@npm_bazel_typescript//:index.bzl", "ts_library")
22

33
package(default_visibility = ["//:__subpackages__"])
44

examples/angular/tools/defaults.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"Set some defaults for karma rules"
22

3-
load("@npm_bazel_karma//:defs.bzl", _ts_web_test_suite = "ts_web_test_suite")
3+
load("@npm_bazel_karma//:index.bzl", _ts_web_test_suite = "ts_web_test_suite")
44

55
def ts_web_test_suite(name, browsers = [], tags = [], **kwargs):
66
_ts_web_test_suite(

examples/protocol_buffers/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ browser_repositories(
6767
firefox = True,
6868
)
6969

70-
load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace")
70+
load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
7171

7272
ts_setup_workspace()
7373

examples/web_testing/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ load("@npm_bazel_karma//:browser_repositories.bzl", "browser_repositories")
5050

5151
browser_repositories()
5252

53-
load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace")
53+
load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
5454

5555
ts_setup_workspace()

0 commit comments

Comments
 (0)