@lage-run/cli 0.5.0 → 0.5.2
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 +55 -1
- package/CHANGELOG.md +22 -2
- package/lib/commands/run/watchAction.js +9 -4
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,61 @@
|
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 21 Nov 2022 06:31:52 GMT",
|
|
6
|
+
"tag": "@lage-run/cli_v0.5.2",
|
|
7
|
+
"version": "0.5.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/cli",
|
|
13
|
+
"commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810",
|
|
14
|
+
"comment": "Fixing the watch mode to use the newer simple scheduler"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@lage-run/cli",
|
|
19
|
+
"comment": "Bump @lage-run/scheduler to v0.6.0",
|
|
20
|
+
"commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@lage-run/cli",
|
|
25
|
+
"comment": "Bump @lage-run/scheduler-types to v0.2.9",
|
|
26
|
+
"commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@lage-run/cli",
|
|
31
|
+
"comment": "Bump @lage-run/reporters to v0.2.40",
|
|
32
|
+
"commit": "aafe75c34b61ed10f11c829a7bb1f5ad86f0b810"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"date": "Fri, 18 Nov 2022 19:52:38 GMT",
|
|
39
|
+
"tag": "@lage-run/cli_v0.5.1",
|
|
40
|
+
"version": "0.5.1",
|
|
41
|
+
"comments": {
|
|
42
|
+
"patch": [
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@lage-run/cli",
|
|
46
|
+
"comment": "Bump @lage-run/scheduler to v0.5.15",
|
|
47
|
+
"commit": "0970a6aa757664bd8fa9338982ef6e051500577c"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@lage-run/cli",
|
|
52
|
+
"comment": "Bump @lage-run/cache to v0.2.3",
|
|
53
|
+
"commit": "0970a6aa757664bd8fa9338982ef6e051500577c"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "Thu, 17 Nov 2022 19:29:51 GMT",
|
|
6
60
|
"tag": "@lage-run/cli_v0.5.0",
|
|
7
61
|
"version": "0.5.0",
|
|
8
62
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
# Change Log - @lage-run/cli
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 21 Nov 2022 06:31:52 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.5.2
|
|
8
|
+
|
|
9
|
+
Mon, 21 Nov 2022 06:31:52 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fixing the watch mode to use the newer simple scheduler (kchau@microsoft.com)
|
|
14
|
+
- Bump @lage-run/scheduler to v0.6.0
|
|
15
|
+
- Bump @lage-run/scheduler-types to v0.2.9
|
|
16
|
+
- Bump @lage-run/reporters to v0.2.40
|
|
17
|
+
|
|
18
|
+
## 0.5.1
|
|
19
|
+
|
|
20
|
+
Fri, 18 Nov 2022 19:52:38 GMT
|
|
21
|
+
|
|
22
|
+
### Patches
|
|
23
|
+
|
|
24
|
+
- Bump @lage-run/scheduler to v0.5.15
|
|
25
|
+
- Bump @lage-run/cache to v0.2.3
|
|
26
|
+
|
|
7
27
|
## 0.5.0
|
|
8
28
|
|
|
9
|
-
Thu, 17 Nov 2022 19:29:
|
|
29
|
+
Thu, 17 Nov 2022 19:29:51 GMT
|
|
10
30
|
|
|
11
31
|
### Minor changes
|
|
12
32
|
|
|
@@ -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
|
|
146
|
-
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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.
|
|
24
|
-
"@lage-run/scheduler-types": "^0.2.
|
|
23
|
+
"@lage-run/scheduler": "^0.6.0",
|
|
24
|
+
"@lage-run/scheduler-types": "^0.2.9",
|
|
25
25
|
"@lage-run/target-graph": "^0.6.1",
|
|
26
|
-
"@lage-run/cache": "^0.2.
|
|
27
|
-
"@lage-run/reporters": "^0.2.
|
|
26
|
+
"@lage-run/cache": "^0.2.3",
|
|
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",
|