@rushstack/heft
Advanced tools
Comparing version 0.68.14 to 0.68.15
# Change Log - @rushstack/heft | ||
This log was last generated on Thu, 30 Jan 2025 01:11:42 GMT and should not be manually modified. | ||
This log was last generated on Thu, 30 Jan 2025 16:10:36 GMT and should not be manually modified. | ||
## 0.68.15 | ||
Thu, 30 Jan 2025 16:10:36 GMT | ||
### Patches | ||
- Prefer `os.availableParallelism()` to `os.cpus().length`. | ||
## 0.68.14 | ||
@@ -6,0 +13,0 @@ Thu, 30 Jan 2025 01:11:42 GMT |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.49.1" | ||
"packageVersion": "7.49.2" | ||
} | ||
] | ||
} |
@@ -116,2 +116,3 @@ "use strict"; | ||
constructor(options) { | ||
var _a, _b; | ||
this._action = options.action; | ||
@@ -123,3 +124,3 @@ this._internalHeftSession = options.internalHeftSession; | ||
this._metricsCollector = options.metricsCollector; | ||
const numberOfCores = os_1.default.cpus().length; | ||
const numberOfCores = (_b = (_a = os_1.default.availableParallelism) === null || _a === void 0 ? void 0 : _a.call(os_1.default)) !== null && _b !== void 0 ? _b : os_1.default.cpus().length; | ||
// If an explicit parallelism number wasn't provided, then choose a sensible | ||
@@ -126,0 +127,0 @@ // default. |
@@ -68,2 +68,3 @@ "use strict"; | ||
const { taskTotalExecutionMs } = filledPerformanceData; | ||
const cpus = os.cpus(); | ||
const metricData = { | ||
@@ -77,4 +78,6 @@ command: command, | ||
machineArch: process.arch, | ||
machineCores: os.cpus().length, | ||
machineProcessor: os.cpus()[0].model, | ||
machineCores: cpus.length, | ||
// The Node.js model is sometimes padded, for example: | ||
// "AMD Ryzen 7 3700X 8-Core Processor | ||
machineProcessor: cpus[0].model.trim(), | ||
machineTotalMemoryMB: os.totalmem(), | ||
@@ -81,0 +84,0 @@ commandParameters: parameters || {} |
{ | ||
"name": "@rushstack/heft", | ||
"version": "0.68.14", | ||
"version": "0.68.15", | ||
"description": "Build all your JavaScript projects the same way: A way that works.", | ||
@@ -37,7 +37,7 @@ "keywords": [ | ||
"watchpack": "2.4.0", | ||
"@rushstack/node-core-library": "5.11.0", | ||
"@rushstack/rig-package": "0.5.3", | ||
"@rushstack/heft-config-file": "0.16.4", | ||
"@rushstack/terminal": "0.14.6", | ||
"@rushstack/operation-graph": "0.2.37", | ||
"@rushstack/terminal": "0.14.6", | ||
"@rushstack/node-core-library": "5.11.0", | ||
"@rushstack/rig-package": "0.5.3", | ||
"@rushstack/ts-command-line": "4.23.4" | ||
@@ -44,0 +44,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1147616
15583