mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Benchpress requires a decent amount of work to be ES2022 compliant. This will be done in a followup PR. PR Close #49559
44 lines
975 B
Text
44 lines
975 B
Text
load("//tools:defaults.bzl", "ng_package", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "benchpress",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
),
|
|
# TODO(alanagius) fix benchpress to compile with es2022
|
|
devmode_target = "es2020",
|
|
prodmode_target = "es2020",
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/core",
|
|
"@npm//@types/node",
|
|
"@npm//reflect-metadata",
|
|
],
|
|
)
|
|
|
|
ng_package(
|
|
name = "npm_package",
|
|
package_name = "@angular/benchpress",
|
|
srcs = [
|
|
"README.md",
|
|
"package.json",
|
|
],
|
|
externals = [
|
|
"@angular/core",
|
|
"reflect-metadata",
|
|
],
|
|
# Do not add more to this list.
|
|
# Dependencies on the full npm_package cause long re-builds.
|
|
visibility = [
|
|
"//aio:__subpackages__",
|
|
"//integration:__subpackages__",
|
|
],
|
|
deps = [
|
|
":benchpress",
|
|
],
|
|
)
|