@lage-run/cli 0.4.13 → 0.4.14

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,46 @@
2
2
  "name": "@lage-run/cli",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 12 Oct 2022 21:06:57 GMT",
5
+ "date": "Thu, 20 Oct 2022 00:22:08 GMT",
6
+ "tag": "@lage-run/cli_v0.4.14",
7
+ "version": "0.4.14",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/cli",
13
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529",
14
+ "comment": "promotes maxWorker to be a \"top level\" target config (options are for target runners)"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/cli",
19
+ "comment": "Bump @lage-run/scheduler to v0.4.10",
20
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@lage-run/cli",
25
+ "comment": "Bump @lage-run/target-graph to v0.4.3",
26
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@lage-run/cli",
31
+ "comment": "Bump @lage-run/cache to v0.1.20",
32
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@lage-run/cli",
37
+ "comment": "Bump @lage-run/reporters to v0.2.24",
38
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Wed, 12 Oct 2022 21:07:14 GMT",
6
45
  "tag": "@lage-run/cli_v0.4.13",
7
46
  "version": "0.4.13",
8
47
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
1
1
  # Change Log - @lage-run/cli
2
2
 
3
- This log was last generated on Wed, 12 Oct 2022 21:06:57 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 20 Oct 2022 00:22:08 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.4.14
8
+
9
+ Thu, 20 Oct 2022 00:22:08 GMT
10
+
11
+ ### Patches
12
+
13
+ - promotes maxWorker to be a "top level" target config (options are for target runners) (kchau@microsoft.com)
14
+ - Bump @lage-run/scheduler to v0.4.10
15
+ - Bump @lage-run/target-graph to v0.4.3
16
+ - Bump @lage-run/cache to v0.1.20
17
+ - Bump @lage-run/reporters to v0.2.24
18
+
7
19
  ## 0.4.13
8
20
 
9
- Wed, 12 Oct 2022 21:06:57 GMT
21
+ Wed, 12 Oct 2022 21:07:14 GMT
10
22
 
11
23
  ### Patches
12
24
 
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getMaxWorkersPerTask = void 0;
7
7
  const os_1 = __importDefault(require("os"));
8
8
  function getMaxWorkersPerTask(pipelineConfig) {
9
- var _a, _b;
9
+ var _a, _b, _c;
10
10
  const maxWorkersPerTask = new Map();
11
11
  for (const [task, taskConfig] of Object.entries(pipelineConfig)) {
12
12
  if (!Array.isArray(taskConfig) && !task.includes("#")) {
13
- const maxWorkerOptions = (_b = (_a = taskConfig.options) === null || _a === void 0 ? void 0 : _a.maxWorkers) !== null && _b !== void 0 ? _b : os_1.default.cpus().length - 1;
13
+ const maxWorkerOptions = (_c = (_a = taskConfig.maxWorkers) !== null && _a !== void 0 ? _a : (_b = taskConfig.options) === null || _b === void 0 ? void 0 : _b.maxWorkers) !== null && _c !== void 0 ? _c : os_1.default.cpus().length - 1;
14
14
  let maxWorkers = 0;
15
15
  if (typeof maxWorkerOptions === "string") {
16
16
  if (maxWorkerOptions.endsWith("%")) {
@@ -1 +1 @@
1
- {"version":3,"file":"getMaxWorkersPerTask.js","sourceRoot":"","sources":["../../src/config/getMaxWorkers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E,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,YAAE,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;SACzE;KACF;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAxBD,oDAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cli",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Command Line Interface for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@lage-run/find-npm-client": "^0.1.1",
21
21
  "@lage-run/logger": "^1.2.0",
22
- "@lage-run/scheduler": "^0.4.9",
23
- "@lage-run/target-graph": "^0.4.2",
24
- "@lage-run/cache": "^0.1.19",
25
- "@lage-run/reporters": "^0.2.23",
22
+ "@lage-run/scheduler": "^0.4.10",
23
+ "@lage-run/target-graph": "^0.4.3",
24
+ "@lage-run/cache": "^0.1.20",
25
+ "@lage-run/reporters": "^0.2.24",
26
26
  "commander": "^9.4.0",
27
27
  "workspace-tools": "^0.28.0",
28
28
  "chokidar": "3.5.3"