build: fix api guardian error form npm (#30063)
built-in, relative, absolute, nested node_modules - Error: Cannot find module '../lib/cli' built-in, relative, absolute, nested node_modules - Error: Cannot find module '../lib/cli' This is because the transpiled lib files need to be added to the data. PR Close #30063
This commit is contained in:
parent
230e32905c
commit
04d13429f0
|
@ -87,7 +87,8 @@ jasmine_node_test(
|
|||
)
|
||||
# END-INTERNAL
|
||||
|
||||
exports_files(
|
||||
["bin/ts-api-guardian"],
|
||||
filegroup(
|
||||
name = "bin",
|
||||
srcs = glob(["lib/*.js"]) + ["bin/ts-api-guardian"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
|
@ -36,7 +36,7 @@ def ts_api_guardian_test(
|
|||
# Locally we need to add the TS build target
|
||||
# But it will replaced to @npm//ts-api-guardian when publishing
|
||||
"@angular//tools/ts-api-guardian:lib",
|
||||
"@angular//tools/ts-api-guardian:bin/ts-api-guardian",
|
||||
"@angular//tools/ts-api-guardian:bin",
|
||||
]
|
||||
|
||||
args = [
|
||||
|
|
Loading…
Reference in New Issue