fix(dev-infra): ensure ts-node is registered with commonjs as module (#37217)
fix(dev-infra): ensure ts-node is registered with commonjs as module (#37217)

We recently added support for automatic registration of `ts-node`
when the dev-infra configuration is loaded.

In addition to registering ts-node, we should also ensure that the
`commonjs` module is set up. By default, `ts-node` would use ES module
imports that are not supported by default in NodeJS.

PR Close #37217

shairez/angular,JiaLiPassion/angular,filipesilva/angular,alxhub/angular,JiaLiPassion/angular,gnomeontherun/angular,filipesilva/angular,wKoza/angular,ocombe/angular,ocombe/angular,brandonroberts/angular,gdi2290/angular,brandonroberts/angular,ocombe/angular,wKoza/angular,filipesilva/angular,brandonroberts/angular,ocombe/angular,brandonroberts/angular,manekinekko/angular,manekinekko/angular,brandonroberts/angular,blesh/angular,gkalpak/angular,angular-indonesia/angular,mgechev/angular,gkalpak/angular,ocombe/angular,gnomeontherun/angular,shairez/angular,shairez/angular,alxhub/angular,wKoza/angular,blesh/angular,wKoza/angular,ocombe/angular,gnomeontherun/angular,mgechev/angular,wKoza/angular,gdi2290/angular,blesh/angular,gdi2290/angular,manekinekko/angular,JiaLiPassion/angular,IdeaBlade/angular,manekinekko/angular,shairez/angular,IdeaBlade/angular,mgechev/angular,manekinekko/angular,angular/angular,mgechev/angular,filipesilva/angular,gkalpak/angular,gdi2290/angular,gdi2290/angular,filipesilva/angular,gnomeontherun/angular,shairez/angular,IdeaBlade/angular,angular-indonesia/angular,angular/angular,brandonroberts/angular,mgechev/angular,alxhub/angular,IdeaBlade/angular,JiaLiPassion/angular,angular/angular,gkalpak/angular,manekinekko/angular,angular/angular,blesh/angular,blesh/angular,gdi2290/angular,angular-indonesia/angular,IdeaBlade/angular,angular-indonesia/angular,alxhub/angular,wKoza/angular,alxhub/angular