lage 1.7.2 → 1.7.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,37 @@
2
2
  "name": "lage",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 19 Jul 2022 21:14:53 GMT",
5
+ "date": "Tue, 09 Aug 2022 21:16:20 GMT",
6
+ "tag": "lage_v1.7.3",
7
+ "version": "1.7.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "renovate@whitesourcesoftware.com",
12
+ "package": "lage",
13
+ "commit": "6dc38b30d19b0cba7e2609d3681e4e55c4fd6238",
14
+ "comment": "Update dependency beachball to v2.26.0"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 21 Jul 2022 19:19:28 GMT",
21
+ "tag": "lage_v1.7.2",
22
+ "version": "1.7.2",
23
+ "comments": {
24
+ "none": [
25
+ {
26
+ "author": "bkocak1@villanova.edu",
27
+ "package": "lage",
28
+ "commit": "f64e5cc8cd2da5173dde9d3a536e14668dbd6a8e",
29
+ "comment": "formatting with prettier"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Tue, 19 Jul 2022 21:14:57 GMT",
6
36
  "tag": "lage_v1.7.2",
7
37
  "version": "1.7.2",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - lage
2
2
 
3
- This log was last generated on Tue, 19 Jul 2022 21:14:53 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 09 Aug 2022 21:16:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.7.3
8
+
9
+ Tue, 09 Aug 2022 21:16:20 GMT
10
+
11
+ ### Patches
12
+
13
+ - Update dependency beachball to v2.26.0 (renovate@whitesourcesoftware.com)
14
+
7
15
  ## 1.7.2
8
16
 
9
- Tue, 19 Jul 2022 21:14:53 GMT
17
+ Tue, 19 Jul 2022 21:14:57 GMT
10
18
 
11
19
  ### Patches
12
20
 
package/lib/cli.js CHANGED
@@ -10,6 +10,7 @@ const initReporters_1 = require("./logger/initReporters");
10
10
  const version_1 = require("./command/version");
11
11
  const cache_1 = require("./command/cache");
12
12
  const worker_1 = require("./command/worker");
13
+ const graph_1 = require("./command/graph");
13
14
  // Parse CLI args
14
15
  const cwd = process.cwd();
15
16
  try {
@@ -25,6 +26,9 @@ try {
25
26
  case "info":
26
27
  (0, info_1.info)(cwd, config);
27
28
  break;
29
+ case "graph":
30
+ (0, graph_1.graph)(cwd);
31
+ break;
28
32
  case "version":
29
33
  (0, version_1.version)();
30
34
  break;
package/lib/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAAA,kDAA+C;AAC/C,yCAAsC;AACtC,uCAAoC;AACpC,yCAAsC;AACtC,qCAAkC;AAClC,yCAAsC;AACtC,0DAAuD;AACvD,+CAA4C;AAC5C,2CAAwC;AACxC,6CAA0C;AAE1C,iBAAiB;AACjB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;AAC1B,IAAI;IACF,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAG,IAAA,6BAAa,EAAC,MAAM,CAAC,CAAC;IAExC,QAAQ,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACzB,KAAK,OAAO;YACV,IAAA,aAAK,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACnB,MAAM;QAER,KAAK,MAAM;YACT,IAAA,WAAI,EAAC,GAAG,CAAC,CAAC;YACV,MAAM;QAER,KAAK,MAAM;YACT,IAAA,WAAI,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAClB,MAAM;QAER,KAAK,SAAS;YACZ,IAAA,iBAAO,GAAE,CAAC;YACV,MAAM;QA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AAK,mBAAmB;YACtB,eAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;YAC3C,IAAA,eAAM,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACpB,MAAM;QAER;YACE,eAAM,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;YAChD,IAAA,SAAG,EAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;YAC5B,MAAM;KACT;CACF;AAAC,OAAO,CAAC,EAAE;IACV,IAAA,mBAAQ,EAAC,CAAC,IAAK,CAAS,CAAC,OAAO,CAAC,CAAC;CACnC"}
@@ -0,0 +1 @@
1
+ export declare function graph(cwd: string): Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.graph = void 0;
4
+ const workspace_tools_1 = require("workspace-tools");
5
+ async function graph(cwd) {
6
+ const root = (0, workspace_tools_1.getWorkspaceRoot)(cwd);
7
+ if (!root) {
8
+ throw new Error("This must be called inside a codebase that is part of a JavaScript workspace.");
9
+ }
10
+ const allPackages = (0, workspace_tools_1.getPackageInfos)(root);
11
+ const edges = (0, workspace_tools_1.createPackageGraph)(allPackages, {
12
+ namePatterns: ["@nova/types"],
13
+ includeDependencies: true,
14
+ includeDependents: false,
15
+ });
16
+ const fs = require("fs");
17
+ let output = JSON.stringify(edges);
18
+ fs.writeFileSync("types-dependents-false.js", output);
19
+ }
20
+ exports.graph = graph;
21
+ //# sourceMappingURL=graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/command/graph.ts"],"names":[],"mappings":";;;AAAA,qDAAwF;AAEjF,KAAK,UAAU,KAAK,CAAC,GAAW;IACrC,MAAM,IAAI,GAAG,IAAA,kCAAgB,EAAC,GAAG,CAAC,CAAC;IACnC,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IACD,MAAM,WAAW,GAAG,IAAA,iCAAe,EAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAA,oCAAkB,EAAC,WAAW,EAAE;QAC5C,YAAY,EAAE,CAAC,aAAa,CAAC;QAC7B,mBAAmB,EAAE,IAAI;QACzB,iBAAiB,EAAE,KAAK;KACzB,CAAC,CAAC;IACH,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,IAAI,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACnC,EAAE,CAAC,aAAa,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAdD,sBAcC"}
@@ -5,7 +5,7 @@ export interface LogEntry {
5
5
  msg: string;
6
6
  data?: LogStructuredData;
7
7
  }
8
- export declare type LogStructuredData = TaskData | InfoData;
8
+ export declare type LogStructuredData = TaskData | InfoData | GraphData;
9
9
  export interface TaskData {
10
10
  status?: "pending" | "started" | "completed" | "failed" | "skipped";
11
11
  package?: string;
@@ -13,6 +13,9 @@ export interface TaskData {
13
13
  duration?: string;
14
14
  hash?: string | null;
15
15
  }
16
+ export interface GraphData {
17
+ edges?: [string, string][];
18
+ }
16
19
  /**
17
20
  * LogStructuredData for the `info` command
18
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lage",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A monorepo task runner",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -30,6 +30,7 @@
30
30
  "watchpack": "1.7.5"
31
31
  },
32
32
  "dependencies": {
33
+ "@lage-run/logger": "*",
33
34
  "@xmldom/xmldom": "^0.8.0",
34
35
  "abort-controller": "^3.0.0",
35
36
  "backfill": "^6.1.20",
@@ -62,7 +63,7 @@
62
63
  "@types/npmlog": "4.1.4",
63
64
  "@types/p-queue": "3.2.1",
64
65
  "@types/yargs-parser": "15.0.0",
65
- "beachball": "2.23.0",
66
+ "beachball": "2.26.0",
66
67
  "gh-pages": "2.2.0",
67
68
  "jest": "^27.2.0",
68
69
  "ts-jest": "^27.0.5",