Skip to content

Commit 613cd6d

Browse files
author
Angular Builds
committed
1eb36e5 fix(@angular-devkit/build-angular): reduce the number of max workers to available CPUs minus one
1 parent c0ed442 commit 613cd6d

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.1.0-rc.0+sha-f08860b",
3+
"version": "18.1.0-rc.0+sha-1eb36e5",
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-devkit/architect": "github:angular/angular-devkit-architect-builds#f08860b",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#f08860b",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#f08860b",
13-
"@angular/build": "github:angular/angular-build-builds#f08860b",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#1eb36e5",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#1eb36e5",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#1eb36e5",
13+
"@angular/build": "github:angular/angular-build-builds#1eb36e5",
1414
"@babel/core": "7.24.7",
1515
"@babel/generator": "7.24.7",
1616
"@babel/helper-annotate-as-pure": "7.24.7",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.24.7",
2222
"@babel/runtime": "7.24.7",
2323
"@discoveryjs/json-ext": "0.5.7",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#f08860b",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#1eb36e5",
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 = normalizeCacheOptions;
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.1.0-rc.0+sha-f08860b';
13+
const VERSION = '18.1.0-rc.0+sha-1eb36e5';
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 18:42:26 GMT+0000 (Coordinated Universal Time)
1+
Mon Jul 01 2024 13:16:18 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)