build: bazel ts-api-guardian usage fails on workspaces which don't depend on `chalk` (#30138)
When using the npm package in a workspace which doesn't depend on chalk, ts-api-guardian fails with an error `Error: Cannot find module 'chalk'` PR Close #30138
This commit is contained in:
parent
1f4c380f58
commit
ee12c45473
|
@ -37,6 +37,11 @@ def ts_api_guardian_test(
|
||||||
# But it will replaced to @npm//ts-api-guardian when publishing
|
# But it will replaced to @npm//ts-api-guardian when publishing
|
||||||
"@angular//tools/ts-api-guardian:lib",
|
"@angular//tools/ts-api-guardian:lib",
|
||||||
"@angular//tools/ts-api-guardian:bin",
|
"@angular//tools/ts-api-guardian:bin",
|
||||||
|
# The below are required during runtime
|
||||||
|
"@npm//chalk",
|
||||||
|
"@npm//diff",
|
||||||
|
"@npm//minimist",
|
||||||
|
"@npm//typescript",
|
||||||
]
|
]
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
|
Loading…
Reference in New Issue