Skip to content

Commit faf5d9d

Browse files
committed
build: switch coercion and keycodes entry-point to ng_module
We can't use "ts_library" for entry-points which should be part of a "ng_package". This is because "ng_package" currently only partially includes "ts_library" targets in the package (i.e. missing `package.json` file for secondary entry-points). Until we figure out what best practice is, or if angular/angular#32610 is merged, we just use "ng_module" to work around this issue.
1 parent 8ec0d13 commit faf5d9d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/cdk/coercion/BUILD.bazel

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
package(default_visibility = ["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ts_library")
3+
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ng_module")
44

5-
ts_library(
5+
ng_module(
66
name = "coercion",
77
srcs = glob(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
1111
module_name = "@angular/cdk/coercion",
12-
deps = [
13-
"@npm//@angular/core",
14-
],
1512
)
1613

1714
ts_library(

src/cdk/keycodes/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package(default_visibility = ["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ts_library")
3+
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ng_module")
44

5-
ts_library(
5+
ng_module(
66
name = "keycodes",
77
srcs = glob(
88
["**/*.ts"],

0 commit comments

Comments
 (0)