Skip to content

Commit

Permalink
chore(bazel): allow downstream projects to omit //:node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Feb 15, 2018
1 parent c7e33e4 commit 935e805
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"indentSize": 2,
"tabSize": 2
},
"bazelOptions": {
"suppressTsconfigOverrideWarnings": true
},
"files": [
"src/Rx.ts"
]
Expand Down

0 comments on commit 935e805

Please sign in to comment.