@lage-run/config 0.3.7 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@lage-run/config",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 28 Aug 2024 21:12:23 GMT",
5
+ "date": "Sat, 07 Sep 2024 00:01:44 GMT",
6
+ "version": "0.4.0",
7
+ "tag": "@lage-run/config_v0.4.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/config",
13
+ "commit": "fb00e0249a448bd0ab09a0f68e9ea3456d2a7152",
14
+ "comment": "adding parallelism to server"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 28 Aug 2024 21:12:45 GMT",
6
21
  "version": "0.3.7",
7
22
  "tag": "@lage-run/config_v0.3.7",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @lage-run/config
2
2
 
3
- This log was last generated on Wed, 28 Aug 2024 21:12:23 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 07 Sep 2024 00:01:44 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.4.0
8
+
9
+ Sat, 07 Sep 2024 00:01:44 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - adding parallelism to server (kchau@microsoft.com)
14
+
7
15
  ## 0.3.7
8
16
 
9
- Wed, 28 Aug 2024 21:12:23 GMT
17
+ Wed, 28 Aug 2024 21:12:45 GMT
10
18
 
11
19
  ### Patches
12
20
 
package/lib/getConfig.js CHANGED
@@ -17,6 +17,7 @@ function _interop_require_default(obj) {
17
17
  }
18
18
  async function getConfig(cwd) {
19
19
  const config = await (0, _readConfigFile.readConfigFile)(cwd) || {};
20
+ const availableParallelism = "availableParallelism" in _os.default ? _os.default["availableParallelism"]() : _os.default.cpus().length - 1;
20
21
  return {
21
22
  cacheOptions: config?.cacheOptions ?? {},
22
23
  ignore: config?.ignore ?? [],
@@ -34,7 +35,7 @@ async function getConfig(cwd) {
34
35
  loggerOptions: config?.loggerOptions ?? {},
35
36
  runners: config?.runners ?? {},
36
37
  workerIdleMemoryLimit: config?.workerIdleMemoryLimit ?? _os.default.totalmem(),
37
- concurrency: config?.concurrency ?? _os.default.cpus().length - 1,
38
+ concurrency: config?.concurrency ?? availableParallelism,
38
39
  allowNoTargetRuns: config?.allowNoTargetRuns ?? false
39
40
  };
40
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/config",
3
- "version": "0.3.7",
3
+ "version": "0.4.0",
4
4
  "description": "Config management for Lage",
5
5
  "repository": {
6
6
  "type": "git",