build: install dependencies at once (#11647)

This commit is contained in:
Nikolay Vitkov 2024-01-09 11:49:27 +01:00 committed by GitHub
parent 93fb2f4ea4
commit 8f886a0998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,13 @@
* SPDX-License-Identifier: Apache-2.0
*/
import {execSync} from 'child_process';
import {execSync} from 'node:child_process';
import {AngularProjectMulti, AngularProjectSingle} from './projects.mjs';
if (process.env.CI) {
// Need to install in CI
execSync('npm install -g @angular/cli@latest');
execSync('npm install -g @angular-devkit/schematics-cli');
execSync('npm install -g @angular/cli@latest @angular-devkit/schematics-cli');
}
const single = new AngularProjectSingle();