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:
Alan Agius 2019-04-26 09:17:32 +02:00 committed by Andrew Kushnir
parent 1f4c380f58
commit ee12c45473
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ def ts_api_guardian_test(
# But it will replaced to @npm//ts-api-guardian when publishing
"@angular//tools/ts-api-guardian:lib",
"@angular//tools/ts-api-guardian:bin",
# The below are required during runtime
"@npm//chalk",
"@npm//diff",
"@npm//minimist",
"@npm//typescript",
]
args = [