@lage-run/config 0.3.7 → 0.4.1

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,37 @@
2
2
  "name": "@lage-run/config",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 28 Aug 2024 21:12:23 GMT",
5
+ "date": "Wed, 11 Sep 2024 20:30:17 GMT",
6
+ "version": "0.4.1",
7
+ "tag": "@lage-run/config_v0.4.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/config",
13
+ "comment": "Bump @lage-run/logger to v1.3.1",
14
+ "commit": "not available"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Sat, 07 Sep 2024 00:01:57 GMT",
21
+ "version": "0.4.0",
22
+ "tag": "@lage-run/config_v0.4.0",
23
+ "comments": {
24
+ "minor": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/config",
28
+ "commit": "fb00e0249a448bd0ab09a0f68e9ea3456d2a7152",
29
+ "comment": "adding parallelism to server"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 28 Aug 2024 21:12:45 GMT",
6
36
  "version": "0.3.7",
7
37
  "tag": "@lage-run/config_v0.3.7",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
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 Wed, 11 Sep 2024 20:30:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.4.1
8
+
9
+ Wed, 11 Sep 2024 20:30:17 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/logger to v1.3.1
14
+
15
+ ## 0.4.0
16
+
17
+ Sat, 07 Sep 2024 00:01:57 GMT
18
+
19
+ ### Minor changes
20
+
21
+ - adding parallelism to server (kchau@microsoft.com)
22
+
7
23
  ## 0.3.7
8
24
 
9
- Wed, 28 Aug 2024 21:12:23 GMT
25
+ Wed, 28 Aug 2024 21:12:45 GMT
10
26
 
11
27
  ### Patches
12
28
 
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.1",
4
4
  "description": "Config management for Lage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "monorepo-scripts lint"
21
21
  },
22
22
  "dependencies": {
23
- "@lage-run/logger": "^1.3.0",
23
+ "@lage-run/logger": "^1.3.1",
24
24
  "@lage-run/runners": "^1.0.1",
25
25
  "@lage-run/target-graph": "^0.8.9",
26
26
  "backfill-config": "6.4.2",