From ee12c4547358d75fb16982851834b3f9d05e46ea Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 26 Apr 2019 09:17:32 +0200 Subject: [PATCH] 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 --- tools/ts-api-guardian/index.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/ts-api-guardian/index.bzl b/tools/ts-api-guardian/index.bzl index f03e0608db..aac9136a58 100644 --- a/tools/ts-api-guardian/index.bzl +++ b/tools/ts-api-guardian/index.bzl @@ -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 = [