angular/devtools/projects/shared-utils/BUILD.bazel
Joey Perrott 85b3ae2e3e build: migrate devtools to use packaged version of @angular/* packages (#62413)
Use the packaged versions of the packages instead of the local ts_project dependencies to prevent multiple versions of the deps to enter test bundles

PR Close #62413
2025-07-02 16:10:25 +00:00

34 lines
693 B
Text

load("//devtools/tools:defaults.bzl", "ng_web_test_suite")
load("//devtools/tools:typescript.bzl", "ts_project", "ts_test_library")
package(default_visibility = ["//visibility:public"])
ts_project(
name = "shared-utils",
srcs = glob(
["**/*.ts"],
exclude = [
"**/*.spec.ts",
"src/test.ts",
],
),
deps = [
"//:node_modules/@angular/core",
],
)
ts_test_library(
name = "shared_utils_test",
srcs = glob(["**/*.spec.ts"]),
deps = [
":shared-utils_rjs",
"//:node_modules/@angular/core",
],
)
ng_web_test_suite(
name = "test",
deps = [
":shared_utils_test_rjs",
],
)