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

Commit

Permalink
Make libraries that depend on //javascript/angular2/testing/catalyst …
Browse files Browse the repository at this point in the history
…into ng_modules.

Currently you need a dep on something in //third_party/javascript/angular2, so people are forced to insert dummy taze comments.

PiperOrigin-RevId: 263022649
  • Loading branch information
LucasSloan authored and alexeagle committed Aug 13, 2019
1 parent ae6d688 commit 0cbaf66
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ts_auto_deps/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -958,13 +958,7 @@ func hasAngularDependency(r *build.Rule) bool {
for _, li := range edit.AllLists(e) {
for _, elem := range li.List {
str, ok := elem.(*build.StringExpr)
if !ok {
continue
}
if strings.HasPrefix(str.Value, "//third_party/javascript/angular2") {
return true
}
if str.Value == "//javascript/angular2/testing/catalyst" {
if ok && strings.HasPrefix(str.Value, "//third_party/javascript/angular2") {
return true
}
}
Expand Down

0 comments on commit 0cbaf66

Please sign in to comment.