Skip to content

Commit f88b37f

Browse files
author
Angular Builds
committed
9b43ecb fix(@angular-devkit/build-angular): reduce the number of max workers to available CPUs minus one
1 parent 1163cfc commit f88b37f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "18.0.6+sha-2d51e86",
3+
"version": "18.0.6+sha-9b43ecb",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.3.0",
10-
"@angular/build": "github:angular/angular-build-builds#2d51e86",
11-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#2d51e86",
12-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#2d51e86",
13-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#2d51e86",
10+
"@angular/build": "github:angular/angular-build-builds#9b43ecb",
11+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#9b43ecb",
12+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#9b43ecb",
13+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#9b43ecb",
1414
"@babel/core": "7.24.5",
1515
"@babel/generator": "7.24.5",
1616
"@babel/helper-annotate-as-pure": "7.22.5",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.24.5",
2222
"@babel/runtime": "7.24.5",
2323
"@discoveryjs/json-ext": "0.5.7",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#2d51e86",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#9b43ecb",
2525
"@vitejs/plugin-basic-ssl": "1.1.0",
2626
"ansi-colors": "4.1.3",
2727
"autoprefixer": "10.4.19",

src/utils/environment-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ exports.allowMinify = debugOptimize.minify;
6969
const maxWorkersVariable = process.env['NG_BUILD_MAX_WORKERS'];
7070
exports.maxWorkers = isPresent(maxWorkersVariable)
7171
? +maxWorkersVariable
72-
: Math.min(4, (0, node_os_1.availableParallelism)());
72+
: Math.min(4, Math.max((0, node_os_1.availableParallelism)() - 1, 1));
7373
const parallelTsVariable = process.env['NG_BUILD_PARALLEL_TS'];
7474
exports.useParallelTs = !isPresent(parallelTsVariable) || !isDisabled(parallelTsVariable);
7575
const debugPerfVariable = process.env['NG_BUILD_DEBUG_PERF'];

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = void 0;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '18.0.6+sha-2d51e86';
13+
const VERSION = '18.0.6+sha-9b43ecb';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fri Jun 28 2024 13:41:53 GMT+0000 (Coordinated Universal Time)
1+
Mon Jul 01 2024 13:16:19 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)