Internal change.

PiperOrigin-RevId: 281998457
diff --git a/internal/common/compilation.bzl b/internal/common/compilation.bzl
index 3b10700..72a81d3 100644
--- a/internal/common/compilation.bzl
+++ b/internal/common/compilation.bzl
@@ -50,7 +50,7 @@
     # any closure JS code.
     "runtime_deps": attr.label_list(
         default = [],
-        providers = ["js"],
+        providers = [JsInfo],
     ),
     "deps": attr.label_list(aspects = DEPS_ASPECTS),
     "_additional_d_ts": _ADDITIONAL_D_TS,
@@ -72,7 +72,7 @@
     # Fallback to `ctx.attr.deps`.
     deps = deps if deps != None else ctx.attr.deps
     for dep in deps:
-        if not hasattr(dep, "typescript") and not hasattr(dep, "js"):
+        if not hasattr(dep, "typescript") and not JsInfo in dep:
             allowed_deps_msg = "Dependencies must be ts_library"
 
             fail("%s is neither a TypeScript nor a JS producing rule.\n%s\n" % (dep.label, allowed_deps_msg))