Make libraries that depend on //javascript/angular2/testing/catalyst 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: 257466752
diff --git a/ts_auto_deps/updater/updater.go b/ts_auto_deps/updater/updater.go
index 0c52437..55e839e 100644
--- a/ts_auto_deps/updater/updater.go
+++ b/ts_auto_deps/updater/updater.go
@@ -968,7 +968,13 @@
for _, li := range edit.AllLists(e) {
for _, elem := range li.List {
str, ok := elem.(*build.StringExpr)
- if ok && strings.HasPrefix(str.Value, "//third_party/javascript/angular2") {
+ if !ok {
+ continue
+ }
+ if strings.HasPrefix(str.Value, "//third_party/javascript/angular2") {
+ return true
+ }
+ if str.Value == "//javascript/angular2/testing/catalyst" {
return true
}
}