fix(dev-infra): transitive targets cannot be resolved by API extractor (#42828)
fix(dev-infra): transitive targets cannot be resolved by API extractor (#42828)

For API golden tests not running against a NPM package, we extract
all transitive declarations of the specified `data` targets. This is
necessary because API extractor needs to resolve other targets that have
been linked by the Bazel NodeJS rules. The linker by default only
provides access to JavaScript sources, but the API extractor is
specifically concerned with type definitions that we need to manually
extract.

PR Close #42828

angular/dev-infra,angular/dev-infra,angular/dev-infra,angular/dev-infra