Skip to content

Commit

Permalink
build(bazel): adds bazel build files to support building rxjs with ba…
Browse files Browse the repository at this point in the history
…zel from dist
  • Loading branch information
gregmagolan committed Dec 5, 2017
1 parent 8f80c56 commit 12dac3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .make-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ fs.copySync(TYPE_ROOT, TYPE_PKG);
copySources(ESM5_ROOT, ESM5_PKG, true);
copySources(ESM2015_ROOT, ESM2015_PKG, true);

// Copy over tsconfig.json for bazel build support
fs.copySync('./tsconfig.json', PKG_ROOT + 'src/tsconfig.json');

fs.writeJsonSync(PKG_ROOT + 'package.json', rootPackageJson);

Expand Down
12 changes: 12 additions & 0 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package(default_visibility = ["//visibility:public"])

exports_files(["tsconfig.json"])

load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")

ts_library(
name = "rxjs",
module_name = "rxjs",
srcs = glob(["*.ts", "**/*.ts"]),
tsconfig = "tsconfig.json",
)
1 change: 1 addition & 0 deletions src/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspace(name = "rxjs")

0 comments on commit 12dac3b

Please sign in to comment.