@lage-run/cli 0.13.0 → 0.13.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,58 @@
2
2
  "name": "@lage-run/cli",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 01 Apr 2023 00:28:19 GMT",
5
+ "date": "Thu, 06 Apr 2023 22:27:27 GMT",
6
+ "tag": "@lage-run/cli_v0.13.1",
7
+ "version": "0.13.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/cli",
13
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b",
14
+ "comment": "bumps workspace-tools and use async packageinfos"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/cli",
19
+ "comment": "Bump @lage-run/config to v0.1.2",
20
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@lage-run/cli",
25
+ "comment": "Bump @lage-run/scheduler to v0.11.1",
26
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@lage-run/cli",
31
+ "comment": "Bump @lage-run/scheduler-types to v0.3.6",
32
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@lage-run/cli",
37
+ "comment": "Bump @lage-run/target-graph to v0.8.2",
38
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@lage-run/cli",
43
+ "comment": "Bump @lage-run/cache to v0.5.2",
44
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@lage-run/cli",
49
+ "comment": "Bump @lage-run/reporters to v1.1.1",
50
+ "commit": "ec15819ad8677a57ed2c7b8ce55538da69095c3b"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Sat, 01 Apr 2023 00:28:31 GMT",
6
57
  "tag": "@lage-run/cli_v0.13.0",
7
58
  "version": "0.13.0",
8
59
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,26 @@
1
1
  # Change Log - @lage-run/cli
2
2
 
3
- This log was last generated on Sat, 01 Apr 2023 00:28:19 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Apr 2023 22:27:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.13.1
8
+
9
+ Thu, 06 Apr 2023 22:27:27 GMT
10
+
11
+ ### Patches
12
+
13
+ - bumps workspace-tools and use async packageinfos (kchau@microsoft.com)
14
+ - Bump @lage-run/config to v0.1.2
15
+ - Bump @lage-run/scheduler to v0.11.1
16
+ - Bump @lage-run/scheduler-types to v0.3.6
17
+ - Bump @lage-run/target-graph to v0.8.2
18
+ - Bump @lage-run/cache to v0.5.2
19
+ - Bump @lage-run/reporters to v1.1.1
20
+
7
21
  ## 0.13.0
8
22
 
9
- Sat, 01 Apr 2023 00:28:19 GMT
23
+ Sat, 01 Apr 2023 00:28:31 GMT
10
24
 
11
25
  ### Minor changes
12
26
 
@@ -21,7 +21,7 @@ async function affectedAction(options) {
21
21
  const config = await (0, _config.getConfig)(cwd);
22
22
  const logger = (0, _logger.default)();
23
23
  const root = (0, _workspaceTools.getWorkspaceRoot)(cwd);
24
- const packageInfos = (0, _workspaceTools.getPackageInfos)(root);
24
+ const packageInfos = await (0, _workspaceTools.getPackageInfosAsync)(root);
25
25
  const packages = (0, _getFilteredPackagesJs.getFilteredPackages)({
26
26
  root,
27
27
  logger,
@@ -23,7 +23,7 @@ async function infoAction(options, command) {
23
23
  const logger = (0, _logger.default)();
24
24
  // Build Target Graph
25
25
  const root = (0, _workspaceTools.getWorkspaceRoot)(process.cwd());
26
- const packageInfos = (0, _workspaceTools.getPackageInfos)(root);
26
+ const packageInfos = await (0, _workspaceTools.getPackageInfosAsync)(root);
27
27
  const { tasks } = (0, _filterArgsForTasksJs.filterArgsForTasks)(command.args);
28
28
  const targetGraph = (0, _createTargetGraphJs.createTargetGraph)({
29
29
  logger,
@@ -35,7 +35,7 @@ async function runAction(options, command) {
35
35
  });
36
36
  // Build Target Graph
37
37
  const root = (0, _workspaceTools.getWorkspaceRoot)(process.cwd());
38
- const packageInfos = (0, _workspaceTools.getPackageInfos)(root);
38
+ const packageInfos = await (0, _workspaceTools.getPackageInfosAsync)(root);
39
39
  const { tasks , taskArgs } = (0, _filterArgsForTasksJs.filterArgsForTasks)(command.args);
40
40
  const targetGraph = (0, _createTargetGraphJs.createTargetGraph)({
41
41
  logger,
@@ -67,7 +67,7 @@ async function watchAction(options, command) {
67
67
  logger.addReporter(reporter);
68
68
  // Build Target Graph
69
69
  const root = (0, _workspaceTools.getWorkspaceRoot)(process.cwd());
70
- const packageInfos = (0, _workspaceTools.getPackageInfos)(root);
70
+ const packageInfos = await (0, _workspaceTools.getPackageInfosAsync)(root);
71
71
  const { tasks , taskArgs } = (0, _filterArgsForTasksJs.filterArgsForTasks)(command.args);
72
72
  const targetGraph = (0, _createTargetGraphJs.createTargetGraph)({
73
73
  logger,
@@ -135,7 +135,7 @@ async function watchAction(options, command) {
135
135
  targetRun.options.shouldCache = false;
136
136
  }
137
137
  // When initial run is done, disable fetching of caches on all targets, keep writing to the cache
138
- const watcher = (0, _watcherJs.watch)(root);
138
+ const watcher = await (0, _watcherJs.watch)(root, packageInfos);
139
139
  watcher.on("change", async (packageName)=>{
140
140
  reporter.resetLogEntries();
141
141
  const targets = new Map();
@@ -1,3 +1,4 @@
1
1
  /// <reference types="node" />
2
+ import type { PackageInfos } from "workspace-tools";
2
3
  import EventEmitter from "events";
3
- export declare function watch(cwd: string): EventEmitter;
4
+ export declare function watch(cwd: string, packageInfos: PackageInfos): EventEmitter;
@@ -15,10 +15,9 @@ function _interopRequireDefault(obj) {
15
15
  default: obj
16
16
  };
17
17
  }
18
- function watch(cwd) {
18
+ function watch(cwd, packageInfos) {
19
19
  const events = new _events.default();
20
20
  const root = (0, _workspaceTools.getWorkspaceRoot)(cwd);
21
- const packageInfos = (0, _workspaceTools.getPackageInfos)(cwd);
22
21
  // generate a tree index of all the packages
23
22
  const packageIndex = createPackageIndex(root, packageInfos);
24
23
  const packagePaths = Object.values(packageInfos).map((pkg)=>_path.default.dirname(pkg.packageJsonPath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cli",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Command Line Interface for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -18,16 +18,16 @@
18
18
  "lint": "monorepo-scripts lint"
19
19
  },
20
20
  "dependencies": {
21
- "@lage-run/config": "^0.1.1",
21
+ "@lage-run/config": "^0.1.2",
22
22
  "@lage-run/find-npm-client": "^0.1.4",
23
23
  "@lage-run/logger": "^1.2.2",
24
- "@lage-run/scheduler": "^0.11.0",
25
- "@lage-run/scheduler-types": "^0.3.5",
26
- "@lage-run/target-graph": "^0.8.1",
27
- "@lage-run/cache": "^0.5.1",
28
- "@lage-run/reporters": "^1.1.0",
24
+ "@lage-run/scheduler": "^0.11.1",
25
+ "@lage-run/scheduler-types": "^0.3.6",
26
+ "@lage-run/target-graph": "^0.8.2",
27
+ "@lage-run/cache": "^0.5.2",
28
+ "@lage-run/reporters": "^1.1.1",
29
29
  "commander": "^9.4.0",
30
- "workspace-tools": "^0.30.0",
30
+ "workspace-tools": "^0.32.0",
31
31
  "chokidar": "3.5.3",
32
32
  "fast-glob": "^3.2.11"
33
33
  },