Refactor the "output_groups" string to the OutputGroupInfo() provider.
Refactor the "output_groups" string to the OutputGroupInfo() provider.

This is the beginning of removing the legacy providers, per https://github.com/bazelbuild/bazel/issues/7347

See https://docs.bazel.build/versions/master/skylark/rules.html#migrating-from-legacy-providers:
"The field output_groups takes a struct value and corresponds to an
OutputGroupInfo."

PiperOrigin-RevId: 265162279

bazelbuild/rules_typescript,bazelbuild/rules_typescript,bazelbuild/rules_typescript