@lage-run/config 0.3.6 → 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,43 @@
2
2
  "name": "@lage-run/config",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 23 May 2024 18:14:47 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",
21
+ "version": "0.3.7",
22
+ "tag": "@lage-run/config_v0.3.7",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/config",
28
+ "commit": "8b27a04b8d5916457d1c8219edd1f2d216543954",
29
+ "comment": "moving runners to its own package, fixing up imports"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@lage-run/config",
34
+ "comment": "Bump @lage-run/runners to v1.0.1",
35
+ "commit": "not available"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Thu, 23 May 2024 18:15:05 GMT",
6
42
  "version": "0.3.6",
7
43
  "tag": "@lage-run/config_v0.3.6",
8
44
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @lage-run/config
2
2
 
3
- This log was last generated on Thu, 23 May 2024 18:14:47 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
+
15
+ ## 0.3.7
16
+
17
+ Wed, 28 Aug 2024 21:12:45 GMT
18
+
19
+ ### Patches
20
+
21
+ - moving runners to its own package, fixing up imports (kchau@microsoft.com)
22
+ - Bump @lage-run/runners to v1.0.1
23
+
7
24
  ## 0.3.6
8
25
 
9
- Thu, 23 May 2024 18:14:47 GMT
26
+ Thu, 23 May 2024 18:15:05 GMT
10
27
 
11
28
  ### Patches
12
29
 
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
  }
@@ -2,7 +2,7 @@ import type { CacheOptions } from "./CacheOptions.js";
2
2
  import type { Priority } from "./Priority.js";
3
3
  import type { PipelineDefinition } from "./PipelineDefinition.js";
4
4
  import type { LoggerOptions } from "./LoggerOptions.js";
5
- import type { TargetRunnerPickerOptions } from "@lage-run/scheduler-types";
5
+ import type { TargetRunnerPickerOptions } from "@lage-run/runners";
6
6
  export type NpmClient = "npm" | "yarn" | "pnpm";
7
7
  export interface ConfigOptions {
8
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/config",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "description": "Config management for Lage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@lage-run/logger": "^1.3.0",
24
- "@lage-run/scheduler-types": "^0.3.13",
24
+ "@lage-run/runners": "^1.0.1",
25
25
  "@lage-run/target-graph": "^0.8.9",
26
26
  "backfill-config": "6.4.2",
27
27
  "cosmiconfig": "7.1.0",