From 98e5ea45b7363e2a7ba158bec3908372737bfdaf Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 28 Mar 2019 23:31:59 +0100 Subject: [PATCH] build: specify runtime dependency for highlight-files binary (#15630) --- tools/highlight-files/BUILD.bazel | 2 +- tools/markdown-to-html/BUILD.bazel | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/highlight-files/BUILD.bazel b/tools/highlight-files/BUILD.bazel index 969078189b3..7c9521f8c89 100644 --- a/tools/highlight-files/BUILD.bazel +++ b/tools/highlight-files/BUILD.bazel @@ -8,7 +8,6 @@ ts_library( srcs = glob(["**/*.ts"]), deps = [ "@npm//@types/node", - "@npm//highlight.js", ], tsconfig = ":tsconfig.json", ) @@ -17,6 +16,7 @@ nodejs_binary( name = "highlight-files", entry_point = "angular_material/tools/highlight-files/highlight-files.js", data = [ + "@npm//highlight.js", ":sources", ], ) diff --git a/tools/markdown-to-html/BUILD.bazel b/tools/markdown-to-html/BUILD.bazel index b8d774fe7fb..916773bf6c3 100644 --- a/tools/markdown-to-html/BUILD.bazel +++ b/tools/markdown-to-html/BUILD.bazel @@ -19,6 +19,7 @@ nodejs_binary( entry_point = "angular_material/tools/markdown-to-html/transform-markdown.js", data = [ "@npm//marked", + "@npm//highlight.js", ":transform-markdown", ], )