build: don't depend on npm packages from public api tests (#26602)

We need only the inputs from ng_module.

PR Close #26602
This commit is contained in:
Igor Minar
2018-10-19 14:41:26 -07:00
committed by Matias Niemelä
parent 95993e1dd5
commit d4c3742e25
2 changed files with 31 additions and 30 deletions

View File

@ -1,31 +1,3 @@
load("//tools/ts-api-guardian:index.bzl", "ts_api_guardian_test")
load(":public_api_guard.bzl", "generate_targets")
[ts_api_guardian_test(
name = "%s_%s_api" % (
bundle[0],
bundle[1].replace("/", "_"),
),
actual = "packages/%s/npm_package/%s.d.ts" % (
bundle[0],
bundle[1],
),
data = glob([
"%s/**/*.d.ts" % bundle[0],
]) + [
"//packages/%s:npm_package" % bundle[0],
],
golden = "tools/public_api_guard/%s/%s.d.ts" % (
bundle[0],
bundle[1],
),
# https://github.com/angular/angular/pull/26602 might be enough to fix the fixme-ivy-jit and fixme-ivy-aot issues
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
) for bundle in [b[:-len(".d.ts")].split("/", 1) for b in glob(
["**/*.d.ts"],
# The API surface of the compiler is currently unstable - all of the important APIs are exposed
# via @angular/core, @angular/platform-browser or @angular/platform-browser-dynamic instead.
exclude = ["compiler/*"],
)]]
generate_targets(glob(["**/*.d.ts"]))