@lage-run/cli 0.5.1 → 0.5.3

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,55 @@
2
2
  "name": "@lage-run/cli",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 18 Nov 2022 19:52:27 GMT",
5
+ "date": "Mon, 05 Dec 2022 18:02:26 GMT",
6
+ "tag": "@lage-run/cli_v0.5.3",
7
+ "version": "0.5.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/cli",
13
+ "comment": "Bump @lage-run/scheduler to v0.7.0",
14
+ "commit": "347522c6a3d6ec77bee6ace1bbd60a08b42e4513"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 21 Nov 2022 06:32:03 GMT",
21
+ "tag": "@lage-run/cli_v0.5.2",
22
+ "version": "0.5.2",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/cli",
28
+ "commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810",
29
+ "comment": "Fixing the watch mode to use the newer simple scheduler"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@lage-run/cli",
34
+ "comment": "Bump @lage-run/scheduler to v0.6.0",
35
+ "commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@lage-run/cli",
40
+ "comment": "Bump @lage-run/scheduler-types to v0.2.9",
41
+ "commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@lage-run/cli",
46
+ "comment": "Bump @lage-run/reporters to v0.2.40",
47
+ "commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Fri, 18 Nov 2022 19:52:38 GMT",
6
54
  "tag": "@lage-run/cli_v0.5.1",
7
55
  "version": "0.5.1",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @lage-run/cli
2
2
 
3
- This log was last generated on Fri, 18 Nov 2022 19:52:27 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 05 Dec 2022 18:02:26 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.5.3
8
+
9
+ Mon, 05 Dec 2022 18:02:26 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/scheduler to v0.7.0
14
+
15
+ ## 0.5.2
16
+
17
+ Mon, 21 Nov 2022 06:32:03 GMT
18
+
19
+ ### Patches
20
+
21
+ - Fixing the watch mode to use the newer simple scheduler (kchau@microsoft.com)
22
+ - Bump @lage-run/scheduler to v0.6.0
23
+ - Bump @lage-run/scheduler-types to v0.2.9
24
+ - Bump @lage-run/reporters to v0.2.40
25
+
7
26
  ## 0.5.1
8
27
 
9
- Fri, 18 Nov 2022 19:52:27 GMT
28
+ Fri, 18 Nov 2022 19:52:38 GMT
10
29
 
11
30
  ### Patches
12
31
 
@@ -63,7 +63,6 @@ async function watchAction(options, command) {
63
63
  // Configure logger
64
64
  const logger = (0, _logger.default)();
65
65
  const reporter = new _reporters.LogReporter({
66
- grouped: true,
67
66
  logLevel: _logger.LogLevel[options.logLevel]
68
67
  });
69
68
  logger.addReporter(reporter);
@@ -139,13 +138,19 @@ async function watchAction(options, command) {
139
138
  }
140
139
  // When initial run is done, disable fetching of caches on all targets, keep writing to the cache
141
140
  const watcher = (0, _watcherJs.watch)(root);
142
- watcher.on("change", (packageName)=>{
141
+ watcher.on("change", async (packageName)=>{
143
142
  reporter.resetLogEntries();
143
+ const targets = new Map();
144
144
  for (const target of targetGraph.targets.values()){
145
- if (target.packageName === packageName && scheduler.onTargetChange) {
146
- scheduler.onTargetChange(target.id);
145
+ if (target.packageName === packageName) {
146
+ targets.set(target.id, target);
147
147
  }
148
148
  }
149
+ const deltaGraph = {
150
+ targets
151
+ };
152
+ const summary = await scheduler.run(root, deltaGraph, true);
153
+ displaySummary(summary, logger.reporters);
149
154
  });
150
155
  }
151
156
  function displaySummary(summary, reporters) {
@@ -1,5 +1,5 @@
1
1
  import type { Config as BackfillCacheOptions } from "backfill-config";
2
- export declare type CacheOptions = BackfillCacheOptions & {
2
+ export type CacheOptions = BackfillCacheOptions & {
3
3
  environmentGlob: string[];
4
4
  cacheKey: string;
5
5
  writeRemoteCache: boolean;
@@ -3,7 +3,7 @@ import type { Priority } from "./Priority.js";
3
3
  import type { PipelineDefinition } from "./PipelineDefinition.js";
4
4
  import type { LoggerOptions } from "./LoggerOptions.js";
5
5
  import type { TargetRunnerPickerOptions } from "@lage-run/scheduler/lib/runners/TargetRunnerPicker.js";
6
- export declare type NpmClient = "npm" | "yarn" | "pnpm";
6
+ export type NpmClient = "npm" | "yarn" | "pnpm";
7
7
  export interface ConfigOptions {
8
8
  /**
9
9
  * Defines the task pipeline, prefix with "^" character to denote a direct topological dependency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Command Line Interface for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -20,11 +20,11 @@
20
20
  "dependencies": {
21
21
  "@lage-run/find-npm-client": "^0.1.4",
22
22
  "@lage-run/logger": "^1.2.2",
23
- "@lage-run/scheduler": "^0.5.15",
24
- "@lage-run/scheduler-types": "^0.2.8",
23
+ "@lage-run/scheduler": "^0.7.0",
24
+ "@lage-run/scheduler-types": "^0.2.9",
25
25
  "@lage-run/target-graph": "^0.6.1",
26
26
  "@lage-run/cache": "^0.2.3",
27
- "@lage-run/reporters": "^0.2.39",
27
+ "@lage-run/reporters": "^0.2.40",
28
28
  "commander": "^9.4.0",
29
29
  "workspace-tools": "^0.29.0",
30
30
  "chokidar": "3.5.3",