build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)

The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.

For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.

Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.

However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.

This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.

PR Close #33206

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