Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Import tools/bazel.rc in Bazel 0.18's workspace-rc.
Browse files Browse the repository at this point in the history
See bazelbuild/bazel#5756

PiperOrigin-RevId: 210141555
  • Loading branch information
TypeScript Team authored and alexeagle committed Aug 27, 2018
1 parent 0f2c2c3 commit 088883c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bazelrc
@@ -0,0 +1 @@
import %workspace%/tools/bazel.rc
6 changes: 3 additions & 3 deletions ts_auto_deps/updater/updater.go
Expand Up @@ -733,9 +733,9 @@ func setLibraryRuleKinds(ctx context.Context, buildFilePath string, bld *build.F
}
}
if changed {
bld.Stmt = edit.InsertLoad(bld.Stmt, "//javascript/angular2:build_defs.bzl",
bld.Stmt = edit.InsertLoad(bld.Stmt, "@angular//:index.bzl",
[]string{"ng_module"}, []string{"ng_module"})
bld.Stmt = edit.InsertLoad(bld.Stmt, "//javascript/typescript:build_defs.bzl",
bld.Stmt = edit.InsertLoad(bld.Stmt, "@build_bazel_rules_typescript//:defs.bzl",
[]string{"ts_library"}, []string{"ts_library"})
removeUnusedLoad(bld, "ts_library")
removeUnusedLoad(bld, "ng_module")
Expand Down Expand Up @@ -838,7 +838,7 @@ func getOrCreateRule(bld *build.File, ruleName, ruleKind string, rt ruleType) *b
}

loadArgs := []string{ruleKind}
bld.Stmt = edit.InsertLoad(bld.Stmt, "//javascript/typescript:build_defs.bzl", loadArgs, loadArgs)
bld.Stmt = edit.InsertLoad(bld.Stmt, "@build_bazel_rules_typescript//:defs.bzl", loadArgs, loadArgs)

r := &build.Rule{&build.CallExpr{X: &build.Ident{Name: ruleKind}}, ""}
// Rename to *_ts if there's a name collision. This leaves open a collision with another rule
Expand Down

0 comments on commit 088883c

Please sign in to comment.