From 127d6511533f0dcafad34e430559add0c533ba39 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 15 Feb 2018 08:02:12 -0800 Subject: [PATCH] chore(bazel): allow downstream projects to omit //:node_modules --- src/BUILD.bazel | 6 ++++++ tsconfig.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/BUILD.bazel b/src/BUILD.bazel index 31156c7e7f..86da2a8475 100644 --- a/src/BUILD.bazel +++ b/src/BUILD.bazel @@ -9,4 +9,10 @@ ts_library( module_name = "rxjs", srcs = glob(["*.ts", "**/*.ts"]), tsconfig = "tsconfig.json", + # Specify the compile-time dependencies to run the compilation (eg. typescript) + # The default value assumes that the end-user has a target //:node_modules + # but not all users do. + # This also makes the build more reproducible, in case the user's TypeScript + # version isn't compatible. + node_modules = "@build_bazel_rules_typescript_tsc_wrapped_deps//:node_modules", ) diff --git a/tsconfig.json b/tsconfig.json index bbe84992e1..3db6ed4538 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,5 +25,8 @@ "formatCodeOptions": { "indentSize": 2, "tabSize": 2 + }, + "bazelOptions": { + "suppressTsconfigOverrideWarnings": true } } \ No newline at end of file