angular/packages/animations/BUILD.bazel
Joey Perrott cbc258eec8 build: remove ts_project_interop infrastructure (#62908)
Remove the interop macros and final usages

PR Close #62908
2025-07-31 09:12:58 +00:00

91 lines
2.2 KiB
Text

load("//tools:defaults2.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project", "npm_package")
package(default_visibility = ["//visibility:public"])
ng_project(
name = "animations",
srcs = glob(
[
"*.ts",
"src/**/*.ts",
],
),
deps = [
"//packages/common",
"//packages/core",
],
)
ng_package(
name = "npm_package",
srcs = [
"package.json",
],
package = "@angular/animations",
tags = [
"release-with-framework",
],
# Do not add more to this list.
# Dependencies on the full npm_package cause long re-builds.
visibility = [
"//adev:__pkg__",
"//integration:__subpackages__",
"//modules/ssr-benchmarks:__subpackages__",
"//packages/compiler-cli/integrationtest:__pkg__",
"//packages/compiler/test:__pkg__",
],
deps = [
":animations",
"//packages/animations/browser",
"//packages/animations/browser/testing",
],
)
# TODO(devversion): Temporary early `npm_package` for making this package usable in `core/test/bundling`.
# Long-term, `pkg_npm` will be migrated to `npm_package` in general.
npm_package(
name = "pkg",
srcs = [":npm_package"],
replace_prefixes = {
"npm_package/": "",
},
)
api_golden_test_npm_package(
name = "animations_api",
data = [
":npm_package",
"//goldens:public-api",
],
golden_dir = "goldens/public-api/animations",
npm_package = "packages/animations/npm_package",
)
api_golden_test(
name = "animations_errors",
data = [
"//goldens:public-api",
"//packages/animations",
],
entry_point = "src/errors.d.ts",
golden = "goldens/public-api/animations/errors.api.md",
)
filegroup(
name = "files_for_docgen",
srcs = glob([
"*.ts",
"src/**/*.ts",
]) + ["PACKAGE.md"],
)
generate_api_docs(
name = "animations_docs",
srcs = [
":files_for_docgen",
"//packages:common_files_and_deps_for_docs",
"//packages/common:files_for_docgen",
],
entry_point = ":index.ts",
module_name = "@angular/animations",
)