From 935e80547ded0460c52c88cfa4ed3f6f1201af47 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 8f6585679b..9c37fa1981 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,6 +23,9 @@ "indentSize": 2, "tabSize": 2 }, + "bazelOptions": { + "suppressTsconfigOverrideWarnings": true + }, "files": [ "src/Rx.ts" ]