perf(ivy): switch ngtsc to use single-file emit (#29147)
perf(ivy): switch ngtsc to use single-file emit (#29147)

In the TypeScript compiler API, emit() can be performed either on a single
ts.SourceFile or on the entire ts.Program simultaneously.

ngtsc previously used whole-program emit, which was convenient to use while
spinning up the project but has a significant drawback: it causes a type
checking operation to occur for the whole program, including .d.ts files.
In large Bazel environments (such as Google's codebase), an ngtsc invocation
can have a few .ts files and thousands of .d.ts inputs. This unwanted type
checking is therefore a significant drain on performance.

This commit switches ngtsc to emit each .ts file individually, avoiding the
unwanted type checking.

PR Close #29147

vikerman/angular,StephenFluin/angular,mhevery/angular,IdeaBlade/angular,gdi2290/angular,wKoza/angular,juristr/angular,manekinekko/angular,gkalpak/angular,jasonaden/angular,angular/angular,vikerman/angular,mprobst/angular,sarunint/angular,angular/angular,alxhub/angular,vikerman/angular,jasonaden/angular,Toxicable/angular,IdeaBlade/angular,juristr/angular,StephenFluin/angular,IgorMinar/angular,petebacondarwin/angular,shairez/angular,petebacondarwin/angular,matsko/angular,mgechev/angular,snaptech/angular,gdi2290/angular,Toxicable/angular,gdi2290/angular,sarunint/angular,blesh/angular,blesh/angular,gnomeontherun/angular,ocombe/angular,angular/angular,matsko/angular,matsko/angular,hansl/angular,alxhub/angular,Brocco/angular,wKoza/angular,blesh/angular,mhevery/angular,JiaLiPassion/angular,wKoza/angular,filipesilva/angular,angular-indonesia/angular,alxhub/angular,shairez/angular,gdi2290/angular,filipesilva/angular,manekinekko/angular,Brocco/angular,manekinekko/angular,mlaval/angular,wKoza/angular,IgorMinar/angular,ocombe/angular,alexeagle/angular,sarunint/angular,jasonaden/angular,snaptech/angular,manekinekko/angular,mprobst/angular,alexeagle/angular,sarunint/angular,JiaLiPassion/angular,mprobst/angular,matsko/angular,mhevery/angular,mgechev/angular,hansl/angular,brandonroberts/angular,shairez/angular,ocombe/angular,filipesilva/angular,JiaLiPassion/angular,Toxicable/angular,wKoza/angular,Toxicable/angular,wKoza/angular,juristr/angular,angular/angular,sarunint/angular,jasonaden/angular,brandonroberts/angular,petebacondarwin/angular,angular-indonesia/angular,alexeagle/angular,alexeagle/angular,vikerman/angular,hansl/angular,alexeagle/angular,filipesilva/angular,Toxicable/angular,manekinekko/angular,mgechev/angular,gdi2290/angular,IdeaBlade/angular,hansl/angular,IgorMinar/angular,mprobst/angular,snaptech/angular,gkalpak/angular,shairez/angular,IdeaBlade/angular,ocombe/angular,sarunint/angular,brandonroberts/angular,gnomeontherun/angular,mprobst/angular,jasonaden/angular,Brocco/angular,angular-indonesia/angular,mgechev/angular,alexeagle/angular,brandonroberts/angular,angular-indonesia/angular,blesh/angular,hansl/angular,snaptech/angular,vikerman/angular,mhevery/angular,brandonroberts/angular,snaptech/angular,Toxicable/angular,gnomeontherun/angular,mgechev/angular,alxhub/angular,juristr/angular,alxhub/angular,IgorMinar/angular,StephenFluin/angular,gkalpak/angular,snaptech/angular,Brocco/angular,mhevery/angular,ocombe/angular,brandonroberts/angular,juristr/angular,mlaval/angular,hansl/angular,gkalpak/angular,StephenFluin/angular,shairez/angular,IgorMinar/angular,gnomeontherun/angular,mlaval/angular,StephenFluin/angular,Brocco/angular,IdeaBlade/angular,gdi2290/angular,mhevery/angular,petebacondarwin/angular,IgorMinar/angular,blesh/angular,petebacondarwin/angular,jasonaden/angular,Brocco/angular,petebacondarwin/angular,matsko/angular,mlaval/angular,vikerman/angular,JiaLiPassion/angular,filipesilva/angular,juristr/angular,mlaval/angular,manekinekko/angular,mprobst/angular,ocombe/angular