@codependix/cli 0.0.8 → 0.0.10
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.md +18 -0
- package/README.md +8 -8
- package/dist/{main.module-CoJiQi-B.js → main.module-DhSimp4F.js} +180 -177
- package/dist/src/index.js +1 -1
- package/dist/src/main.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 0.0.10 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated codependix-configuration to 0.0.11
|
|
6
|
+
- Updated codependix-boundaries to 0.0.10
|
|
7
|
+
- Updated codependix-output to 0.0.10
|
|
8
|
+
- Updated codependix-core to 0.0.10
|
|
9
|
+
|
|
10
|
+
## 0.0.9 (2026-10-08)
|
|
11
|
+
|
|
12
|
+
### 🧱 Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated codependix-configuration to 0.0.10
|
|
15
|
+
- Updated codependix-boundaries to 0.0.9
|
|
16
|
+
- Updated codependix-output to 0.0.9
|
|
17
|
+
- Updated codependix-core to 0.0.9
|
|
18
|
+
|
|
1
19
|
## 0.0.8 (2026-10-08)
|
|
2
20
|
|
|
3
21
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -686,13 +686,13 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
686
686
|
### Project
|
|
687
687
|
|
|
688
688
|

|
|
689
|
-

|
|
690
690
|

|
|
691
691
|

|
|
692
692
|
|
|
693
693
|
### Measured Targets
|
|
694
694
|
|
|
695
|
-

|
|
696
696
|
|
|
697
697
|
### TypeScript
|
|
698
698
|
|
|
@@ -874,16 +874,16 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
874
874
|
### Markdown
|
|
875
875
|
|
|
876
876
|

|
|
877
|
-

|
|
878
878
|

|
|
879
|
-

|
|
880
|
+

|
|
881
881
|

|
|
882
882
|

|
|
883
883
|

|
|
884
|
-

|
|
885
|
+

|
|
886
|
+

|
|
887
887
|

|
|
888
888
|

|
|
889
889
|

|
|
@@ -9,8 +9,11 @@ import { BoundaryCheckModule as f, BoundaryCheckService as p, RunContextModule a
|
|
|
9
9
|
import { CHECK_NAMES as g, ConfigurationModule as _, ConfigurationService as v } from "@codependix/configuration";
|
|
10
10
|
import { CombinedOutputModule as y, CombinedOutputService as b, FORMAT_MARKDOWN as x, FORMAT_NAMES as S, GraphRunModule as C, GraphRunService as w, PATH_FORMAT_NAMES as T, PathQueryModule as E, PathQueryService as D, ReportingModule as O, ReportingService as k } from "@codependix/output";
|
|
11
11
|
import { Command as A, CommandRunner as j, Option as M } from "nest-commander";
|
|
12
|
-
//#region
|
|
13
|
-
var N =
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
13
|
+
var N = Object.defineProperty, __name = (e, t) => N(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), P = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, F = /^([A-Za-z]+)/, I = /* @__PURE__ */ new Set([
|
|
14
17
|
"built",
|
|
15
18
|
"cut",
|
|
16
19
|
"found",
|
|
@@ -28,7 +31,7 @@ var N = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s
|
|
|
28
31
|
"split",
|
|
29
32
|
"took",
|
|
30
33
|
"wrote"
|
|
31
|
-
]),
|
|
34
|
+
]), L = /* @__PURE__ */ new Set([
|
|
32
35
|
"CommandFactory",
|
|
33
36
|
"ExceptionHandler",
|
|
34
37
|
"GraphQLModule",
|
|
@@ -41,12 +44,12 @@ var N = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s
|
|
|
41
44
|
]);
|
|
42
45
|
//#endregion
|
|
43
46
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
|
|
44
|
-
function
|
|
47
|
+
function __decorateMetadata(e, t) {
|
|
45
48
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
46
49
|
}
|
|
47
50
|
//#endregion
|
|
48
51
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
49
|
-
function
|
|
52
|
+
function __decorate(e, t, n, r) {
|
|
50
53
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
51
54
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
52
55
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -54,9 +57,9 @@ function R(e, t, n, r) {
|
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
57
|
-
var
|
|
60
|
+
var R, z = class LoggerService extends e {
|
|
58
61
|
static {
|
|
59
|
-
|
|
62
|
+
R = this;
|
|
60
63
|
}
|
|
61
64
|
constructor() {
|
|
62
65
|
super();
|
|
@@ -64,15 +67,15 @@ var z, B = class extends e {
|
|
|
64
67
|
static isProduction = process.env.NODE_ENV === "production";
|
|
65
68
|
static rootLogger;
|
|
66
69
|
static writesToStandardError = !1;
|
|
67
|
-
child =
|
|
70
|
+
child = R.root;
|
|
68
71
|
static createRootLogger() {
|
|
69
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
70
|
-
return
|
|
73
|
+
return R.isProduction ? R.writesToStandardError ? u({ level: e }, u.destination(2)) : u({ level: e }) : u({
|
|
71
74
|
level: e,
|
|
72
75
|
transport: {
|
|
73
76
|
options: {
|
|
74
77
|
colorize: !0,
|
|
75
|
-
destination:
|
|
78
|
+
destination: R.writesToStandardError ? 2 : 1,
|
|
76
79
|
ignore: "pid,hostname,emoji",
|
|
77
80
|
messageFormat: "{emoji} {msg}",
|
|
78
81
|
singleLine: !0
|
|
@@ -82,14 +85,14 @@ var z, B = class extends e {
|
|
|
82
85
|
});
|
|
83
86
|
}
|
|
84
87
|
static logToStandardError() {
|
|
85
|
-
if (
|
|
88
|
+
if (R.rootLogger !== void 0) {
|
|
86
89
|
process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
87
90
|
return;
|
|
88
91
|
}
|
|
89
|
-
|
|
92
|
+
R.writesToStandardError = !0;
|
|
90
93
|
}
|
|
91
94
|
assertConventionalMessage(e) {
|
|
92
|
-
if (
|
|
95
|
+
if (R.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
|
|
93
96
|
let t = this.getConventionalMessageViolation(e.parsed);
|
|
94
97
|
if (t !== void 0) throw Error(t);
|
|
95
98
|
}
|
|
@@ -100,21 +103,21 @@ var z, B = class extends e {
|
|
|
100
103
|
}), {
|
|
101
104
|
...e.data,
|
|
102
105
|
context: e.context,
|
|
103
|
-
...
|
|
106
|
+
...R.isProduction ? {} : { emoji: e.parsed.emoji }
|
|
104
107
|
};
|
|
105
108
|
}
|
|
106
109
|
getConventionalMessageViolation(e) {
|
|
107
110
|
let t = e.emoji, n = e.text;
|
|
108
111
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
109
|
-
let r =
|
|
112
|
+
let r = F.exec(n)?.[1];
|
|
110
113
|
if (r === void 0 || !this.isConventionalVerb(r)) return `Log message must begin with a verb in present progressive or past tense, got "${r ?? ""}": "${t} ${n}"`;
|
|
111
114
|
}
|
|
112
115
|
isConventionalVerb(e) {
|
|
113
116
|
let t = e.toLowerCase();
|
|
114
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
117
|
+
return t.endsWith("ing") || t.endsWith("ed") || I.has(t);
|
|
115
118
|
}
|
|
116
119
|
parseMessage(e) {
|
|
117
|
-
let t = String(e), n =
|
|
120
|
+
let t = String(e), n = P.exec(t), r = n?.[1];
|
|
118
121
|
return r === void 0 ? {
|
|
119
122
|
emoji: void 0,
|
|
120
123
|
text: t
|
|
@@ -124,10 +127,10 @@ var z, B = class extends e {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
shouldSkipConventionalMessageValidation(e) {
|
|
127
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && L.has(e);
|
|
128
131
|
}
|
|
129
132
|
static get root() {
|
|
130
|
-
return
|
|
133
|
+
return R.rootLogger ??= R.createRootLogger(), R.rootLogger;
|
|
131
134
|
}
|
|
132
135
|
buildErrorLogEntry(e, t) {
|
|
133
136
|
let n = t instanceof Error ? t.stack || t.message : String(t);
|
|
@@ -171,7 +174,7 @@ var z, B = class extends e {
|
|
|
171
174
|
this.info(e, t, n);
|
|
172
175
|
}
|
|
173
176
|
setContext(e) {
|
|
174
|
-
super.setContext(e), this.child =
|
|
177
|
+
super.setContext(e), this.child = R.root.child({ context: e });
|
|
175
178
|
}
|
|
176
179
|
verbose(e, t, n) {
|
|
177
180
|
let r = this.parseMessage(e);
|
|
@@ -190,19 +193,19 @@ var z, B = class extends e {
|
|
|
190
193
|
}), r.text);
|
|
191
194
|
}
|
|
192
195
|
};
|
|
193
|
-
|
|
196
|
+
z = R = __decorate([n({ scope: i.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], z);
|
|
194
197
|
//#endregion
|
|
195
198
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
196
|
-
var
|
|
197
|
-
|
|
199
|
+
var B = class LoggerModule {};
|
|
200
|
+
B = __decorate([t(), r({
|
|
198
201
|
controllers: [],
|
|
199
|
-
exports: [
|
|
202
|
+
exports: [z],
|
|
200
203
|
imports: [],
|
|
201
|
-
providers: [
|
|
202
|
-
})],
|
|
204
|
+
providers: [z]
|
|
205
|
+
})], B);
|
|
203
206
|
//#endregion
|
|
204
207
|
//#region packages/ic-suite/codependix/codependix-cli/src/constants.ts
|
|
205
|
-
var
|
|
208
|
+
var V = d.object({}), H, U = H = class MapCommand extends j {
|
|
206
209
|
graphRunService;
|
|
207
210
|
boundaryCheckService;
|
|
208
211
|
combinedOutputService;
|
|
@@ -211,7 +214,7 @@ var H = d.object({}), U, W = U = class extends j {
|
|
|
211
214
|
reportingService;
|
|
212
215
|
runContextService;
|
|
213
216
|
constructor(e, t, n, r, i, a, o) {
|
|
214
|
-
super(), this.graphRunService = e, this.boundaryCheckService = t, this.combinedOutputService = n, this.configurationService = r, this.logger = i, this.reportingService = a, this.runContextService = o, this.logger.setContext(
|
|
217
|
+
super(), this.graphRunService = e, this.boundaryCheckService = t, this.combinedOutputService = n, this.configurationService = r, this.logger = i, this.reportingService = a, this.runContextService = o, this.logger.setContext(H.name);
|
|
215
218
|
}
|
|
216
219
|
runCombinedOutput(e) {
|
|
217
220
|
e.combinedGraphs !== void 0 && this.combinedOutputService.run({
|
|
@@ -317,164 +320,164 @@ var H = d.object({}), U, W = U = class extends j {
|
|
|
317
320
|
}
|
|
318
321
|
}
|
|
319
322
|
};
|
|
320
|
-
|
|
323
|
+
__decorate([
|
|
321
324
|
M({
|
|
322
325
|
description: `Fail on a comma-separated set drawn from ${g.map((e) => `"${e}"`).join(" and ")}`,
|
|
323
326
|
flags: "--check [check]"
|
|
324
327
|
}),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
],
|
|
328
|
+
__decorateMetadata("design:type", Function),
|
|
329
|
+
__decorateMetadata("design:paramtypes", [String]),
|
|
330
|
+
__decorateMetadata("design:returntype", String)
|
|
331
|
+
], U.prototype, "parseCheck", null), __decorate([
|
|
329
332
|
M({
|
|
330
333
|
description: "Path to the codependix configuration file",
|
|
331
334
|
flags: "--config [config]"
|
|
332
335
|
}),
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
],
|
|
336
|
+
__decorateMetadata("design:type", Function),
|
|
337
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
338
|
+
__decorateMetadata("design:returntype", Object)
|
|
339
|
+
], U.prototype, "parseConfig", null), __decorate([
|
|
337
340
|
M({
|
|
338
341
|
description: "Directory whose Nx workspace this run reads",
|
|
339
342
|
flags: "-d, --directory [directory]"
|
|
340
343
|
}),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
],
|
|
344
|
+
__decorateMetadata("design:type", Function),
|
|
345
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
346
|
+
__decorateMetadata("design:returntype", String)
|
|
347
|
+
], U.prototype, "parseDirectory", null), __decorate([
|
|
345
348
|
M({
|
|
346
349
|
description: "Comma-separated globs overriding the configured exclude. Refused when exclude was never configured",
|
|
347
350
|
flags: "--exclude [exclude]"
|
|
348
351
|
}),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
],
|
|
352
|
+
__decorateMetadata("design:type", Function),
|
|
353
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
354
|
+
__decorateMetadata("design:returntype", Array)
|
|
355
|
+
], U.prototype, "parseExclude", null), __decorate([
|
|
353
356
|
M({
|
|
354
357
|
description: "Build, check, and write the fileImports graph type",
|
|
355
358
|
flags: "--file-imports"
|
|
356
359
|
}),
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
],
|
|
360
|
+
__decorateMetadata("design:type", Function),
|
|
361
|
+
__decorateMetadata("design:paramtypes", []),
|
|
362
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
363
|
+
], U.prototype, "parseFileImports", null), __decorate([
|
|
361
364
|
M({
|
|
362
365
|
description: `What to print to standard output, one of ${S.join(" and ")} (default: ${x}). A graph type prints only when this run also configured a workspace destination for it, even if its own toggle flag enabled it`,
|
|
363
366
|
flags: "-f, --format [format]"
|
|
364
367
|
}),
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
],
|
|
368
|
+
__decorateMetadata("design:type", Function),
|
|
369
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
370
|
+
__decorateMetadata("design:returntype", Object)
|
|
371
|
+
], U.prototype, "parseFormat", null), __decorate([
|
|
369
372
|
M({
|
|
370
373
|
description: "Comma-separated globs overriding the configured include. Refused when include was never configured",
|
|
371
374
|
flags: "--include [include]"
|
|
372
375
|
}),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
],
|
|
376
|
+
__decorateMetadata("design:type", Function),
|
|
377
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
378
|
+
__decorateMetadata("design:returntype", Array)
|
|
379
|
+
], U.prototype, "parseInclude", null), __decorate([
|
|
377
380
|
M({
|
|
378
381
|
description: "Write every active graph type's data, combined into one JSON file at this path, keyed by graph type name. A type appears only when this run also configured a workspace destination for it",
|
|
379
382
|
flags: "--json-output [jsonOutput]"
|
|
380
383
|
}),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
],
|
|
384
|
+
__decorateMetadata("design:type", Function),
|
|
385
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
386
|
+
__decorateMetadata("design:returntype", Object)
|
|
387
|
+
], U.prototype, "parseJsonOutput", null), __decorate([
|
|
385
388
|
M({
|
|
386
389
|
description: "Write every active graph type's rendered diagram, combined into one Markdown file at this path. A type appears only when this run also configured a workspace destination for it",
|
|
387
390
|
flags: "--markdown-output [markdownOutput]"
|
|
388
391
|
}),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
],
|
|
392
|
+
__decorateMetadata("design:type", Function),
|
|
393
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
394
|
+
__decorateMetadata("design:returntype", Object)
|
|
395
|
+
], U.prototype, "parseMarkdownOutput", null), __decorate([
|
|
393
396
|
M({
|
|
394
397
|
description: "Build, check, and write the nestjsModules graph type",
|
|
395
398
|
flags: "--nestjs-modules"
|
|
396
399
|
}),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
],
|
|
400
|
+
__decorateMetadata("design:type", Function),
|
|
401
|
+
__decorateMetadata("design:paramtypes", []),
|
|
402
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
403
|
+
], U.prototype, "parseNestjsModules", null), __decorate([
|
|
401
404
|
M({
|
|
402
405
|
description: "Skip the fileImports graph type for this run",
|
|
403
406
|
flags: "--no-file-imports"
|
|
404
407
|
}),
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
408
|
+
__decorateMetadata("design:type", Function),
|
|
409
|
+
__decorateMetadata("design:paramtypes", []),
|
|
410
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
411
|
+
], U.prototype, "parseNoFileImports", null), __decorate([
|
|
409
412
|
M({
|
|
410
413
|
description: "Skip the nestjsModules graph type for this run",
|
|
411
414
|
flags: "--no-nestjs-modules"
|
|
412
415
|
}),
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
],
|
|
416
|
+
__decorateMetadata("design:type", Function),
|
|
417
|
+
__decorateMetadata("design:paramtypes", []),
|
|
418
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
419
|
+
], U.prototype, "parseNoNestjsModules", null), __decorate([
|
|
417
420
|
M({
|
|
418
421
|
description: "Skip the nxProjects graph type for this run",
|
|
419
422
|
flags: "--no-nx-projects"
|
|
420
423
|
}),
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
],
|
|
424
|
+
__decorateMetadata("design:type", Function),
|
|
425
|
+
__decorateMetadata("design:paramtypes", []),
|
|
426
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
427
|
+
], U.prototype, "parseNoNxProjects", null), __decorate([
|
|
425
428
|
M({
|
|
426
429
|
description: "Build, check, and write the nxProjects graph type",
|
|
427
430
|
flags: "--nx-projects"
|
|
428
431
|
}),
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
],
|
|
432
|
+
__decorateMetadata("design:type", Function),
|
|
433
|
+
__decorateMetadata("design:paramtypes", []),
|
|
434
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
435
|
+
], U.prototype, "parseNxProjects", null), __decorate([
|
|
433
436
|
M({
|
|
434
437
|
description: "Comma-separated project names or roots to export for, as globs, beyond those include already selects. Also narrows the Workspace Graph and --check boundaries to the named set",
|
|
435
438
|
flags: "--projects [projects]"
|
|
436
439
|
}),
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
],
|
|
440
|
+
__decorateMetadata("design:type", Function),
|
|
441
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
442
|
+
__decorateMetadata("design:returntype", Object)
|
|
443
|
+
], U.prototype, "parseProjects", null), __decorate([
|
|
441
444
|
M({
|
|
442
445
|
description: "Comma-separated Nx tags to export for, beyond what include already selects. Also narrows the Workspace Graph and --check boundaries to the tagged projects",
|
|
443
446
|
flags: "--tags [tags]"
|
|
444
447
|
}),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
],
|
|
448
|
+
__decorateMetadata("design:type", Function),
|
|
449
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
450
|
+
__decorateMetadata("design:returntype", Object)
|
|
451
|
+
], U.prototype, "parseTags", null), __decorate([
|
|
449
452
|
M({
|
|
450
453
|
description: "Write every configured export",
|
|
451
454
|
flags: "--write"
|
|
452
455
|
}),
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
],
|
|
456
|
+
__decorateMetadata("design:type", Function),
|
|
457
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
458
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
459
|
+
], U.prototype, "parseWrite", null), U = H = __decorate([
|
|
457
460
|
A({
|
|
458
461
|
description: "Map every configured dependency graph and export it",
|
|
459
462
|
name: "map"
|
|
460
463
|
}),
|
|
461
464
|
n(),
|
|
462
|
-
|
|
465
|
+
__decorateMetadata("design:paramtypes", [
|
|
463
466
|
w === void 0 ? Object : w,
|
|
464
467
|
p === void 0 ? Object : p,
|
|
465
468
|
b === void 0 ? Object : b,
|
|
466
469
|
v === void 0 ? Object : v,
|
|
467
|
-
|
|
470
|
+
z === void 0 ? Object : z,
|
|
468
471
|
k === void 0 ? Object : k,
|
|
469
472
|
h === void 0 ? Object : h
|
|
470
473
|
])
|
|
471
|
-
],
|
|
474
|
+
], U);
|
|
472
475
|
//#endregion
|
|
473
476
|
//#region packages/ic-suite/codependix/codependix-cli/src/modules/map/map.module.ts
|
|
474
|
-
var
|
|
475
|
-
|
|
477
|
+
var W = class MapModule {};
|
|
478
|
+
W = __decorate([r({
|
|
476
479
|
controllers: [],
|
|
477
|
-
exports: [
|
|
480
|
+
exports: [U],
|
|
478
481
|
imports: [
|
|
479
482
|
f,
|
|
480
483
|
y,
|
|
@@ -483,22 +486,22 @@ G = R([r({
|
|
|
483
486
|
O,
|
|
484
487
|
m
|
|
485
488
|
],
|
|
486
|
-
providers: [
|
|
487
|
-
})],
|
|
489
|
+
providers: [U]
|
|
490
|
+
})], W);
|
|
488
491
|
//#endregion
|
|
489
492
|
//#region packages/ic-suite/codependix/codependix-cli/src/modules/path/path.constants.ts
|
|
490
|
-
var
|
|
493
|
+
var G = "The path command requires both <from> and <to> arguments, as in \"codependix path <from> <to>\".", K, q = K = class PathCommand extends j {
|
|
491
494
|
configurationService;
|
|
492
495
|
logger;
|
|
493
496
|
pathQueryService;
|
|
494
497
|
reportingService;
|
|
495
498
|
runContextService;
|
|
496
499
|
constructor(e, t, n, r, i) {
|
|
497
|
-
super(), this.configurationService = e, this.logger = t, this.pathQueryService = n, this.reportingService = r, this.runContextService = i, this.logger.setContext(
|
|
500
|
+
super(), this.configurationService = e, this.logger = t, this.pathQueryService = n, this.reportingService = r, this.runContextService = i, this.logger.setContext(K.name);
|
|
498
501
|
}
|
|
499
502
|
validateInputs(e, t) {
|
|
500
503
|
let n = e[0], r = e[1];
|
|
501
|
-
if (!n || !r) return this.logger.error("🕸️ Rejected the command line", void 0, { reasons: [
|
|
504
|
+
if (!n || !r) return this.logger.error("🕸️ Rejected the command line", void 0, { reasons: [G] }), process.exitCode = 1, null;
|
|
502
505
|
let { errors: i, format: a } = this.pathQueryService.resolveFormat(t.format);
|
|
503
506
|
return i.length > 0 ? (this.logger.error("🕸️ Rejected the command line", void 0, { reasons: i }), process.exitCode = 1, null) : {
|
|
504
507
|
format: a,
|
|
@@ -567,152 +570,152 @@ var K = "The path command requires both <from> and <to> arguments, as in \"codep
|
|
|
567
570
|
}
|
|
568
571
|
}
|
|
569
572
|
};
|
|
570
|
-
|
|
573
|
+
__decorate([
|
|
571
574
|
M({
|
|
572
575
|
description: "Path to the codependix configuration file",
|
|
573
576
|
flags: "--config [config]"
|
|
574
577
|
}),
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
],
|
|
578
|
+
__decorateMetadata("design:type", Function),
|
|
579
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
580
|
+
__decorateMetadata("design:returntype", Object)
|
|
581
|
+
], q.prototype, "parseConfig", null), __decorate([
|
|
579
582
|
M({
|
|
580
583
|
description: "Directory whose Nx workspace this run reads",
|
|
581
584
|
flags: "-d, --directory [directory]"
|
|
582
585
|
}),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
],
|
|
586
|
+
__decorateMetadata("design:type", Function),
|
|
587
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
588
|
+
__decorateMetadata("design:returntype", String)
|
|
589
|
+
], q.prototype, "parseDirectory", null), __decorate([
|
|
587
590
|
M({
|
|
588
591
|
description: "Comma-separated globs overriding the configured exclude. Refused when exclude was never configured",
|
|
589
592
|
flags: "--exclude [exclude]"
|
|
590
593
|
}),
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
],
|
|
594
|
+
__decorateMetadata("design:type", Function),
|
|
595
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
596
|
+
__decorateMetadata("design:returntype", Array)
|
|
597
|
+
], q.prototype, "parseExclude", null), __decorate([
|
|
595
598
|
M({
|
|
596
599
|
description: "Query the fileImports graph type",
|
|
597
600
|
flags: "--file-imports"
|
|
598
601
|
}),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
],
|
|
602
|
+
__decorateMetadata("design:type", Function),
|
|
603
|
+
__decorateMetadata("design:paramtypes", []),
|
|
604
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
605
|
+
], q.prototype, "parseFileImports", null), __decorate([
|
|
603
606
|
M({
|
|
604
607
|
description: `What to print to standard output, one of ${T.join(", ")} (default: ${x})`,
|
|
605
608
|
flags: "-f, --format [format]"
|
|
606
609
|
}),
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
],
|
|
610
|
+
__decorateMetadata("design:type", Function),
|
|
611
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
612
|
+
__decorateMetadata("design:returntype", Object)
|
|
613
|
+
], q.prototype, "parseFormat", null), __decorate([
|
|
611
614
|
M({
|
|
612
615
|
description: "Comma-separated globs overriding the configured include. Refused when include was never configured",
|
|
613
616
|
flags: "--include [include]"
|
|
614
617
|
}),
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
],
|
|
618
|
+
__decorateMetadata("design:type", Function),
|
|
619
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
620
|
+
__decorateMetadata("design:returntype", Array)
|
|
621
|
+
], q.prototype, "parseInclude", null), __decorate([
|
|
619
622
|
M({
|
|
620
623
|
description: "Query the nestjsModules graph type",
|
|
621
624
|
flags: "--nestjs-modules"
|
|
622
625
|
}),
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
],
|
|
626
|
+
__decorateMetadata("design:type", Function),
|
|
627
|
+
__decorateMetadata("design:paramtypes", []),
|
|
628
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
629
|
+
], q.prototype, "parseNestjsModules", null), __decorate([
|
|
627
630
|
M({
|
|
628
631
|
description: "Skip the fileImports graph type for this query",
|
|
629
632
|
flags: "--no-file-imports"
|
|
630
633
|
}),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
],
|
|
634
|
+
__decorateMetadata("design:type", Function),
|
|
635
|
+
__decorateMetadata("design:paramtypes", []),
|
|
636
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
637
|
+
], q.prototype, "parseNoFileImports", null), __decorate([
|
|
635
638
|
M({
|
|
636
639
|
description: "Skip the nestjsModules graph type for this query",
|
|
637
640
|
flags: "--no-nestjs-modules"
|
|
638
641
|
}),
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
],
|
|
642
|
+
__decorateMetadata("design:type", Function),
|
|
643
|
+
__decorateMetadata("design:paramtypes", []),
|
|
644
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
645
|
+
], q.prototype, "parseNoNestjsModules", null), __decorate([
|
|
643
646
|
M({
|
|
644
647
|
description: "Skip the nxProjects graph type for this query",
|
|
645
648
|
flags: "--no-nx-projects"
|
|
646
649
|
}),
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
],
|
|
650
|
+
__decorateMetadata("design:type", Function),
|
|
651
|
+
__decorateMetadata("design:paramtypes", []),
|
|
652
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
653
|
+
], q.prototype, "parseNoNxProjects", null), __decorate([
|
|
651
654
|
M({
|
|
652
655
|
description: "Query the nxProjects graph type",
|
|
653
656
|
flags: "--nx-projects"
|
|
654
657
|
}),
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
],
|
|
658
|
+
__decorateMetadata("design:type", Function),
|
|
659
|
+
__decorateMetadata("design:paramtypes", []),
|
|
660
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
661
|
+
], q.prototype, "parseNxProjects", null), __decorate([
|
|
659
662
|
M({
|
|
660
663
|
description: "Comma-separated project names or roots to search across, as globs, beyond those include already selects",
|
|
661
664
|
flags: "--projects [projects]"
|
|
662
665
|
}),
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
],
|
|
666
|
+
__decorateMetadata("design:type", Function),
|
|
667
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
668
|
+
__decorateMetadata("design:returntype", Object)
|
|
669
|
+
], q.prototype, "parseProjects", null), __decorate([
|
|
667
670
|
M({
|
|
668
671
|
description: "Comma-separated Nx tags to search across, beyond what include already selects",
|
|
669
672
|
flags: "--tags [tags]"
|
|
670
673
|
}),
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
],
|
|
674
|
+
__decorateMetadata("design:type", Function),
|
|
675
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
676
|
+
__decorateMetadata("design:returntype", Object)
|
|
677
|
+
], q.prototype, "parseTags", null), q = K = __decorate([
|
|
675
678
|
A({
|
|
676
679
|
arguments: "<from> <to>",
|
|
677
680
|
description: "Find the shortest connecting path between two nodes in codependix graphs",
|
|
678
681
|
name: "path"
|
|
679
682
|
}),
|
|
680
683
|
n(),
|
|
681
|
-
|
|
684
|
+
__decorateMetadata("design:paramtypes", [
|
|
682
685
|
v === void 0 ? Object : v,
|
|
683
|
-
|
|
686
|
+
z === void 0 ? Object : z,
|
|
684
687
|
D === void 0 ? Object : D,
|
|
685
688
|
k === void 0 ? Object : k,
|
|
686
689
|
h === void 0 ? Object : h
|
|
687
690
|
])
|
|
688
|
-
],
|
|
691
|
+
], q);
|
|
689
692
|
//#endregion
|
|
690
693
|
//#region packages/ic-suite/codependix/codependix-cli/src/modules/path/path.module.ts
|
|
691
|
-
var
|
|
692
|
-
|
|
694
|
+
var J = class PathModule {};
|
|
695
|
+
J = __decorate([r({
|
|
693
696
|
controllers: [],
|
|
694
|
-
exports: [
|
|
697
|
+
exports: [q],
|
|
695
698
|
imports: [
|
|
696
699
|
_,
|
|
697
700
|
E,
|
|
698
701
|
O,
|
|
699
702
|
m
|
|
700
703
|
],
|
|
701
|
-
providers: [
|
|
702
|
-
})],
|
|
704
|
+
providers: [q]
|
|
705
|
+
})], J);
|
|
703
706
|
//#endregion
|
|
704
707
|
//#region packages/ic-suite/codependix/codependix-cli/src/main.module.ts
|
|
705
|
-
var
|
|
706
|
-
|
|
708
|
+
var Y = class MainModule {};
|
|
709
|
+
Y = __decorate([r({ imports: [
|
|
707
710
|
a.forRoot({
|
|
708
711
|
envFilePath: ".env",
|
|
709
712
|
isGlobal: !0,
|
|
710
|
-
validate: (e) =>
|
|
713
|
+
validate: (e) => V.parse(e)
|
|
711
714
|
}),
|
|
712
715
|
o,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
] })],
|
|
716
|
+
B,
|
|
717
|
+
W,
|
|
718
|
+
J
|
|
719
|
+
] })], Y);
|
|
717
720
|
//#endregion
|
|
718
|
-
export {
|
|
721
|
+
export { __name as a, z as i, W as n, U as r, Y as t };
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../main.module-
|
|
1
|
+
import { n as e, r as t, t as n } from "../main.module-DhSimp4F.js";
|
|
2
2
|
export { n as MainModule, t as MapCommand, e as MapModule };
|
package/dist/src/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as e, t } from "../main.module-
|
|
2
|
+
import { i as e, t } from "../main.module-DhSimp4F.js";
|
|
3
3
|
import { CommandFactory as n } from "nest-commander";
|
|
4
4
|
import "reflect-metadata";
|
|
5
5
|
//#region packages/ic-suite/codependix/codependix-cli/src/main.ts
|
|
6
|
-
async function
|
|
6
|
+
async function main() {
|
|
7
7
|
e.logToStandardError();
|
|
8
8
|
let r = new e();
|
|
9
9
|
r.setContext("CommandFactory"), await n.run(t, {
|
|
@@ -11,5 +11,5 @@ async function r() {
|
|
|
11
11
|
logger: r
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
main();
|
|
15
15
|
//#endregion
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@codependix/boundaries": "0.0.
|
|
11
|
-
"@codependix/configuration": "0.0.
|
|
12
|
-
"@codependix/core": "0.0.
|
|
13
|
-
"@codependix/output": "0.0.
|
|
10
|
+
"@codependix/boundaries": "0.0.10",
|
|
11
|
+
"@codependix/configuration": "0.0.11",
|
|
12
|
+
"@codependix/core": "0.0.10",
|
|
13
|
+
"@codependix/output": "0.0.10",
|
|
14
14
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
15
15
|
"@nestjs/config": "^12.0.0",
|
|
16
16
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"strict": true
|
|
75
75
|
},
|
|
76
76
|
"types": "./dist/src/index.d.ts",
|
|
77
|
-
"version": "0.0.
|
|
77
|
+
"version": "0.0.10"
|
|
78
78
|
}
|