@codometer/cli 0.0.9 → 0.0.11

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 CHANGED
@@ -1,3 +1,25 @@
1
+ ## 0.0.11 (2026-10-08)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated codometer-configuration to 0.0.11
6
+ - Updated codometer-measurement to 0.0.11
7
+ - Updated codometer-output to 0.0.11
8
+ - Updated codometer-core to 0.0.11
9
+
10
+ ## 0.0.10 (2026-10-08)
11
+
12
+ ### 🩹 Fixes
13
+
14
+ - **ic-suite:** 🐛 keep class and function names in the published ic-suite bundles ([#1472](https://github.com/organizzolini/codebase/pull/1472), [#1451](https://github.com/organizzolini/codebase/issues/1451))
15
+
16
+ ### 🧱 Updated Dependencies
17
+
18
+ - Updated codometer-configuration to 0.0.10
19
+ - Updated codometer-measurement to 0.0.10
20
+ - Updated codometer-output to 0.0.10
21
+ - Updated codometer-core to 0.0.10
22
+
1
23
  ## 0.0.9 (2026-10-08)
2
24
 
3
25
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -446,40 +446,40 @@ named `<!-- codometer:start -->
446
446
 
447
447
  ### Project
448
448
 
449
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-3346-22c55e?style=flat-square)
450
- ![Repository Size](https://img.shields.io/badge/Repository_Size-118.03_kB-6b7280?style=flat-square)
449
+ ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-3486-22c55e?style=flat-square)
450
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-123.23_kB-6b7280?style=flat-square)
451
451
  ![Folders](https://img.shields.io/badge/Folders-6-4a4a4a?style=flat-square)
452
- ![Source Files](https://img.shields.io/badge/Source_Files-35-3178c6?style=flat-square)
452
+ ![Source Files](https://img.shields.io/badge/Source_Files-36-3178c6?style=flat-square)
453
453
 
454
454
  ### Measured Targets
455
455
 
456
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-6.14_kB_gzip-6b7280?style=flat-square)
456
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-6.25_kB_gzip-6b7280?style=flat-square)
457
457
 
458
458
  ### TypeScript
459
459
 
460
- ![TypeScript Files](https://img.shields.io/badge/TypeScript_Files-35-3178c6?style=flat-square)
461
- ![Interfaces](https://img.shields.io/badge/Interfaces-4-0ea5e9?style=flat-square)
460
+ ![TypeScript Files](https://img.shields.io/badge/TypeScript_Files-36-3178c6?style=flat-square)
461
+ ![Interfaces](https://img.shields.io/badge/Interfaces-5-0ea5e9?style=flat-square)
462
462
  ![Generic Declarations](https://img.shields.io/badge/Generic_Declarations-0-0369a1?style=flat-square)
463
463
  ![Enums](https://img.shields.io/badge/Enums-0-f97316?style=flat-square)
464
464
  ![Decorators](https://img.shields.io/badge/Decorators-25-db2777?style=flat-square)
465
- ![Doc Comments](https://img.shields.io/badge/Doc_Comments-61-6366f1?style=flat-square)
465
+ ![Doc Comments](https://img.shields.io/badge/Doc_Comments-65-6366f1?style=flat-square)
466
466
  ![Static Methods](https://img.shields.io/badge/Static_Methods-0-166534?style=flat-square)
467
467
 
468
468
  ### JavaScript
469
469
 
470
470
  ![JavaScript Files](https://img.shields.io/badge/JavaScript_Files-0-f7df1e?style=flat-square)
471
- ![Test Files](https://img.shields.io/badge/Test_Files-7-10b981?style=flat-square)
472
- ![External Packages](https://img.shields.io/badge/External_Packages-19-8b5cf6?style=flat-square)
471
+ ![Test Files](https://img.shields.io/badge/Test_Files-8-10b981?style=flat-square)
472
+ ![External Packages](https://img.shields.io/badge/External_Packages-20-8b5cf6?style=flat-square)
473
473
  ![Classes](https://img.shields.io/badge/Classes-7-7c3aed?style=flat-square)
474
- ![Functions](https://img.shields.io/badge/Functions-158-16a34a?style=flat-square)
474
+ ![Functions](https://img.shields.io/badge/Functions-165-16a34a?style=flat-square)
475
475
  ![Methods](https://img.shields.io/badge/Methods-34-15803d?style=flat-square)
476
- ![Sync Functions](https://img.shields.io/badge/Sync_Functions-127-4ade80?style=flat-square)
477
- ![Async Functions](https://img.shields.io/badge/Async_Functions-65-059669?style=flat-square)
478
- ![Constants](https://img.shields.io/badge/Constants-109-dc2626?style=flat-square)
479
- ![Imports](https://img.shields.io/badge/Imports-133-0284c7?style=flat-square)
476
+ ![Sync Functions](https://img.shields.io/badge/Sync_Functions-132-4ade80?style=flat-square)
477
+ ![Async Functions](https://img.shields.io/badge/Async_Functions-67-059669?style=flat-square)
478
+ ![Constants](https://img.shields.io/badge/Constants-114-dc2626?style=flat-square)
479
+ ![Imports](https://img.shields.io/badge/Imports-141-0284c7?style=flat-square)
480
480
  ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-25-ea580c?style=flat-square)
481
- ![Comments](https://img.shields.io/badge/Comments-139-64748b?style=flat-square)
482
- ![Comment Lines](https://img.shields.io/badge/Comment_Lines-335-475569?style=flat-square)
481
+ ![Comments](https://img.shields.io/badge/Comments-145-64748b?style=flat-square)
482
+ ![Comment Lines](https://img.shields.io/badge/Comment_Lines-358-475569?style=flat-square)
483
483
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-0-ca8a04?style=flat-square)
484
484
 
485
485
  ### Python
@@ -500,17 +500,17 @@ named `<!-- codometer:start -->
500
500
  ### JSON
501
501
 
502
502
  ![JSON Files](https://img.shields.io/badge/JSON_Files-4-a16207?style=flat-square)
503
- ![JSON Lines](https://img.shields.io/badge/JSON_Lines-194-ca8a04?style=flat-square)
504
- ![JSON Objects](https://img.shields.io/badge/JSON_Objects-43-7c3aed?style=flat-square)
505
- ![JSON Arrays](https://img.shields.io/badge/JSON_Arrays-13-8b5cf6?style=flat-square)
506
- ![JSON Properties](https://img.shields.io/badge/JSON_Properties-124-0284c7?style=flat-square)
507
- ![JSON Strings](https://img.shields.io/badge/JSON_Strings-108-16a34a?style=flat-square)
503
+ ![JSON Lines](https://img.shields.io/badge/JSON_Lines-204-ca8a04?style=flat-square)
504
+ ![JSON Objects](https://img.shields.io/badge/JSON_Objects-45-7c3aed?style=flat-square)
505
+ ![JSON Arrays](https://img.shields.io/badge/JSON_Arrays-15-8b5cf6?style=flat-square)
506
+ ![JSON Properties](https://img.shields.io/badge/JSON_Properties-128-0284c7?style=flat-square)
507
+ ![JSON Strings](https://img.shields.io/badge/JSON_Strings-112-16a34a?style=flat-square)
508
508
  ![JSON Numbers](https://img.shields.io/badge/JSON_Numbers-1-059669?style=flat-square)
509
509
  ![JSON Booleans](https://img.shields.io/badge/JSON_Booleans-8-0ea5e9?style=flat-square)
510
510
  ![JSON Nulls](https://img.shields.io/badge/JSON_Nulls-0-64748b?style=flat-square)
511
- ![JSON Items](https://img.shields.io/badge/JSON_Items-45-475569?style=flat-square)
512
- ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-173-dc2626?style=flat-square)
513
- ![JSON Max Depth](https://img.shields.io/badge/JSON_Max_Depth-6-ea580c?style=flat-square)
511
+ ![JSON Items](https://img.shields.io/badge/JSON_Items-49-475569?style=flat-square)
512
+ ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-181-dc2626?style=flat-square)
513
+ ![JSON Max Depth](https://img.shields.io/badge/JSON_Max_Depth-7-ea580c?style=flat-square)
514
514
 
515
515
  ### YAML
516
516
 
@@ -598,7 +598,7 @@ named `<!-- codometer:start -->
598
598
  ![Utilities Files](https://img.shields.io/badge/Utilities_Files-1-0ea5e9?style=flat-square)
599
599
  ![TypeORM Entities](https://img.shields.io/badge/TypeORM_Entities-0-059669?style=flat-square)
600
600
  ![Unit Tests](https://img.shields.io/badge/Unit_Tests-5-ca8a04?style=flat-square)
601
- ![Integration Tests](https://img.shields.io/badge/Integration_Tests-1-7c3aed?style=flat-square)
601
+ ![Integration Tests](https://img.shields.io/badge/Integration_Tests-2-7c3aed?style=flat-square)
602
602
  ![End To End Tests](https://img.shields.io/badge/End_To_End_Tests-1-0284c7?style=flat-square)
603
603
  ![CSS Comment Budget](https://img.shields.io/badge/CSS_Comment_Budget-0-16a34a?style=flat-square)
604
604
  ![HCL Comment Budget](https://img.shields.io/badge/HCL_Comment_Budget-0-ea580c?style=flat-square)
@@ -635,20 +635,20 @@ named `<!-- codometer:start -->
635
635
  ### Markdown
636
636
 
637
637
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
638
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-295-1f6feb?style=flat-square)
638
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-317-1f6feb?style=flat-square)
639
639
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
640
- ![H2](https://img.shields.io/badge/H2-12-8b5cf6?style=flat-square)
641
- ![H3](https://img.shields.io/badge/H3-20-a78bfa?style=flat-square)
640
+ ![H2](https://img.shields.io/badge/H2-14-8b5cf6?style=flat-square)
641
+ ![H3](https://img.shields.io/badge/H3-23-a78bfa?style=flat-square)
642
642
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
643
643
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
644
644
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
645
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-70-64748b?style=flat-square)
646
- ![Lists](https://img.shields.io/badge/Lists-12-16a34a?style=flat-square)
647
- ![List Items](https://img.shields.io/badge/List_Items-49-22c55e?style=flat-square)
645
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-79-64748b?style=flat-square)
646
+ ![Lists](https://img.shields.io/badge/Lists-15-16a34a?style=flat-square)
647
+ ![List Items](https://img.shields.io/badge/List_Items-58-22c55e?style=flat-square)
648
648
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
649
649
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
650
650
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
651
- ![Links](https://img.shields.io/badge/Links-10-059669?style=flat-square)
651
+ ![Links](https://img.shields.io/badge/Links-12-059669?style=flat-square)
652
652
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
653
653
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-13-dc2626?style=flat-square)
654
654
  ![Inline Code](https://img.shields.io/badge/Inline_Code-78-ef4444?style=flat-square)
@@ -1233,6 +1233,7 @@ graph LR
1233
1233
  file_testing_mocks_ts["testing/mocks.ts"]
1234
1234
  file_testing_setup_ts["testing/setup.ts"]
1235
1235
  file_testing_target_tree_ts["testing/target-tree.ts"]
1236
+ file_testing_vite_library_config_integration_test_ts["testing/vite-library-config.integration.test.ts"]
1236
1237
  file_vite_config_ts["vite.config.ts"]
1237
1238
  file_vitest_config_ts["vitest.config.ts"]
1238
1239
  file_src_main_end_to_end_test_ts --> file_src_constants_ts
@@ -1259,6 +1260,7 @@ graph LR
1259
1260
  file_src_modules_measure_measure_command_unit_test_ts --> file_testing_mocks_ts
1260
1261
  file_src_modules_measure_measure_module_ts --> file_src_modules_measure_measure_command_ts
1261
1262
  file_src_repl_ts --> file_src_main_module_ts
1263
+ file_testing_vite_library_config_integration_test_ts --> file_vite_config_ts
1262
1264
  ```
1263
1265
  <!-- codependix:end name="codependix-file-imports" -->
1264
1266
 
@@ -1,16 +1,19 @@
1
1
  import { ConfigurationModule as e, ConfigurationService as t, FORMAT_NAMES as n } from "@codometer/configuration";
2
2
  import { DiscoveryModule as r, MeasureModule as i, MeasureService as a } from "@codometer/measurement";
3
- import { CODOMETER_MARKERS as o, ChangesModule as s, ChangesService as c, ConfigurationListingModule as l, ConfigurationListingService as u, DeliveryModule as d, DeliveryService as f, DestinationsModule as p, DestinationsService as m, DocumentsModule as ee, DocumentsService as h, JsonModule as g, MarkdownModule as _, RenderConfigurationService as v, RenderModule as y, RenderService as b, ReportModule as x, ReportService as S } from "@codometer/output";
3
+ import { CODOMETER_MARKERS as o, ChangesModule as s, ChangesService as c, ConfigurationListingModule as l, ConfigurationListingService as u, DeliveryModule as d, DeliveryService as f, DestinationsModule as p, DestinationsService as m, DocumentsModule as h, DocumentsService as g, JsonModule as _, MarkdownModule as ee, RenderConfigurationService as v, RenderModule as y, RenderService as b, ReportModule as x, ReportService as S } from "@codometer/output";
4
4
  import { ConsoleLogger as te, Global as ne, Injectable as C, Module as w, Scope as T } from "@nestjs/common";
5
5
  import { ConfigModule as E } from "@nestjs/config";
6
- import { DiscoveryModule as D } from "@nestjs/core";
7
- import { existsSync as O, mkdirSync as k } from "node:fs";
8
- import A from "node:path";
9
- import j from "pino";
10
- import { z as M } from "zod";
11
- import { Command as N, CommandRunner as P, Option as F } from "nest-commander";
12
- //#region packages/logging/src/modules/logger/logger.constants.ts
13
- var re = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\s+/u, ie = /^([A-Za-z]+)/, ae = /* @__PURE__ */ new Set([
6
+ import { DiscoveryModule as re } from "@nestjs/core";
7
+ import { existsSync as D, mkdirSync as O } from "node:fs";
8
+ import k from "node:path";
9
+ import A from "pino";
10
+ import { z as j } from "zod";
11
+ import { Command as M, CommandRunner as N, Option as P } from "nest-commander";
12
+ //#region \0rolldown/runtime.js
13
+ var ie = Object.defineProperty, __name = (e, t) => ie(e, "name", {
14
+ value: t,
15
+ configurable: !0
16
+ }), ae = /^(\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 re = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\
28
31
  "split",
29
32
  "took",
30
33
  "wrote"
31
- ]), oe = /* @__PURE__ */ new Set([
34
+ ]), L = /* @__PURE__ */ new Set([
32
35
  "CommandFactory",
33
36
  "ExceptionHandler",
34
37
  "GraphQLModule",
@@ -41,12 +44,12 @@ var re = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\
41
44
  ]);
42
45
  //#endregion
43
46
  //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
44
- function I(e, t) {
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 L(e, t, n, r) {
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,7 +57,7 @@ function L(e, t, n, r) {
54
57
  }
55
58
  //#endregion
56
59
  //#region packages/logging/src/modules/logger/logger.service.ts
57
- var R, z = class extends te {
60
+ var R, z = class LoggerService extends te {
58
61
  static {
59
62
  R = this;
60
63
  }
@@ -67,7 +70,7 @@ var R, z = class extends te {
67
70
  child = R.root;
68
71
  static createRootLogger() {
69
72
  let e = process.env.LOG_LEVEL ?? "info";
70
- return R.isProduction ? R.writesToStandardError ? j({ level: e }, j.destination(2)) : j({ level: e }) : j({
73
+ return R.isProduction ? R.writesToStandardError ? A({ level: e }, A.destination(2)) : A({ level: e }) : A({
71
74
  level: e,
72
75
  transport: {
73
76
  options: {
@@ -106,15 +109,15 @@ var R, z = class extends te {
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 = ie.exec(n)?.[1];
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") || ae.has(t);
117
+ return t.endsWith("ing") || t.endsWith("ed") || I.has(t);
115
118
  }
116
119
  parseMessage(e) {
117
- let t = String(e), n = re.exec(t), r = n?.[1];
120
+ let t = String(e), n = ae.exec(t), r = n?.[1];
118
121
  return r === void 0 ? {
119
122
  emoji: void 0,
120
123
  text: t
@@ -124,7 +127,7 @@ var R, z = class extends te {
124
127
  };
125
128
  }
126
129
  shouldSkipConventionalMessageValidation(e) {
127
- return e !== void 0 && oe.has(e);
130
+ return e !== void 0 && L.has(e);
128
131
  }
129
132
  static get root() {
130
133
  return R.rootLogger ??= R.createRootLogger(), R.rootLogger;
@@ -137,8 +140,8 @@ var R, z = class extends te {
137
140
  };
138
141
  }
139
142
  createTimestampedOutputLogFilePath(e) {
140
- let t = A.join(process.cwd(), "output");
141
- return O(t) || k(t, { recursive: !0 }), A.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
143
+ let t = k.join(process.cwd(), "output");
144
+ return D(t) || O(t, { recursive: !0 }), k.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
142
145
  }
143
146
  debug(e, t, n) {
144
147
  let r = this.parseMessage(e);
@@ -190,11 +193,11 @@ var R, z = class extends te {
190
193
  }), r.text);
191
194
  }
192
195
  };
193
- z = R = L([C({ scope: T.TRANSIENT }), I("design:paramtypes", [])], z);
196
+ z = R = __decorate([C({ scope: T.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], z);
194
197
  //#endregion
195
198
  //#region packages/logging/src/modules/logger/logger.module.ts
196
- var B = class {};
197
- B = L([ne(), w({
199
+ var B = class LoggerModule {};
200
+ B = __decorate([ne(), w({
198
201
  controllers: [],
199
202
  exports: [z],
200
203
  imports: [],
@@ -202,7 +205,7 @@ B = L([ne(), w({
202
205
  })], B);
203
206
  //#endregion
204
207
  //#region packages/ic-suite/codometer/codometer-cli/src/constants.ts
205
- var V = M.object({}), H, U = H = class extends P {
208
+ var V = j.object({}), H, U = H = class ChangesCommand extends N {
206
209
  configurationService;
207
210
  changesService;
208
211
  documentsService;
@@ -251,70 +254,70 @@ var V = M.object({}), H, U = H = class extends P {
251
254
  });
252
255
  }
253
256
  };
254
- L([
255
- F({
257
+ __decorate([
258
+ P({
256
259
  description: "Directory holding a baseline snapshot of the reports",
257
260
  flags: "--baseline [baseline]"
258
261
  }),
259
- I("design:type", Function),
260
- I("design:paramtypes", [Object]),
261
- I("design:returntype", Object)
262
- ], U.prototype, "parseBaseline", null), L([
263
- F({
262
+ __decorateMetadata("design:type", Function),
263
+ __decorateMetadata("design:paramtypes", [Object]),
264
+ __decorateMetadata("design:returntype", Object)
265
+ ], U.prototype, "parseBaseline", null), __decorate([
266
+ P({
264
267
  description: "Run URL the baseline came from",
265
268
  flags: "--baseline-url [baselineUrl]"
266
269
  }),
267
- I("design:type", Function),
268
- I("design:paramtypes", [Object]),
269
- I("design:returntype", Object)
270
- ], U.prototype, "parseBaselineUrl", null), L([
271
- F({
270
+ __decorateMetadata("design:type", Function),
271
+ __decorateMetadata("design:paramtypes", [Object]),
272
+ __decorateMetadata("design:returntype", Object)
273
+ ], U.prototype, "parseBaselineUrl", null), __decorate([
274
+ P({
272
275
  description: "Directory to look for codometer reports in",
273
276
  flags: "-d, --directory [directory]"
274
277
  }),
275
- I("design:type", Function),
276
- I("design:paramtypes", [Object]),
277
- I("design:returntype", String)
278
- ], U.prototype, "parseDirectory", null), L([
279
- F({
278
+ __decorateMetadata("design:type", Function),
279
+ __decorateMetadata("design:paramtypes", [Object]),
280
+ __decorateMetadata("design:returntype", String)
281
+ ], U.prototype, "parseDirectory", null), __decorate([
282
+ P({
280
283
  description: "Markdown document to splice the report into",
281
284
  flags: "--markdown [markdown]"
282
285
  }),
283
- I("design:type", Function),
284
- I("design:paramtypes", [Object]),
285
- I("design:returntype", Object)
286
- ], U.prototype, "parseMarkdown", null), L([
287
- F({
286
+ __decorateMetadata("design:type", Function),
287
+ __decorateMetadata("design:paramtypes", [Object]),
288
+ __decorateMetadata("design:returntype", Object)
289
+ ], U.prototype, "parseMarkdown", null), __decorate([
290
+ P({
288
291
  description: "File to write the report to",
289
292
  flags: "--output [output]"
290
293
  }),
291
- I("design:type", Function),
292
- I("design:paramtypes", [Object]),
293
- I("design:returntype", Object)
294
- ], U.prototype, "parseOutput", null), U = H = L([
295
- N({
294
+ __decorateMetadata("design:type", Function),
295
+ __decorateMetadata("design:paramtypes", [Object]),
296
+ __decorateMetadata("design:returntype", Object)
297
+ ], U.prototype, "parseOutput", null), U = H = __decorate([
298
+ M({
296
299
  description: "Report codometer's changes against a baseline",
297
300
  name: "changes"
298
301
  }),
299
302
  C(),
300
- I("design:paramtypes", [
303
+ __decorateMetadata("design:paramtypes", [
301
304
  t === void 0 ? Object : t,
302
305
  c === void 0 ? Object : c,
303
- h === void 0 ? Object : h,
306
+ g === void 0 ? Object : g,
304
307
  b === void 0 ? Object : b,
305
308
  z === void 0 ? Object : z
306
309
  ])
307
310
  ], U);
308
311
  //#endregion
309
312
  //#region packages/ic-suite/codometer/codometer-cli/src/modules/changes/changes.module.ts
310
- var W = class {};
311
- W = L([w({
313
+ var W = class ChangesModule {};
314
+ W = __decorate([w({
312
315
  controllers: [],
313
316
  exports: [U],
314
317
  imports: [
315
318
  s,
316
319
  e,
317
- ee,
320
+ h,
318
321
  B,
319
322
  y
320
323
  ],
@@ -322,7 +325,7 @@ W = L([w({
322
325
  })], W);
323
326
  //#endregion
324
327
  //#region packages/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.constants.ts
325
- var G = ["json", "markdown"], K = "markdown", q, J = q = class extends P {
328
+ var G = ["json", "markdown"], K = "markdown", q, J = q = class ConfigurationCommand extends N {
326
329
  codometerConfigurationService;
327
330
  configurationService;
328
331
  renderConfigurationService;
@@ -345,7 +348,7 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class extends P {
345
348
  async run(e, t = {}) {
346
349
  let n = t.format ?? "markdown";
347
350
  if (!G.includes(n)) throw Error(`--format does not accept "${n}". It takes one of ${G.join(" and ")}.`);
348
- let r = A.resolve(t.directory ?? process.cwd()), { described: i, rootError: a } = await this.configurationService.describeConfigurations({
351
+ let r = k.resolve(t.directory ?? process.cwd()), { described: i, rootError: a } = await this.configurationService.describeConfigurations({
349
352
  configurationPath: t.config,
350
353
  workingDirectory: r
351
354
  });
@@ -363,45 +366,45 @@ var G = ["json", "markdown"], K = "markdown", q, J = q = class extends P {
363
366
  process.stdout.write(`${o}\n`);
364
367
  }
365
368
  };
366
- L([
367
- F({
369
+ __decorate([
370
+ P({
368
371
  description: "Path to the configuration file answering for the directory being listed",
369
372
  flags: "--config [config]"
370
373
  }),
371
- I("design:type", Function),
372
- I("design:paramtypes", [Object]),
373
- I("design:returntype", Object)
374
- ], J.prototype, "parseConfig", null), L([
375
- F({
374
+ __decorateMetadata("design:type", Function),
375
+ __decorateMetadata("design:paramtypes", [Object]),
376
+ __decorateMetadata("design:returntype", Object)
377
+ ], J.prototype, "parseConfig", null), __decorate([
378
+ P({
376
379
  description: "Directory to look for configuration files beneath",
377
380
  flags: "-d, --directory [directory]"
378
381
  }),
379
- I("design:type", Function),
380
- I("design:paramtypes", [Object]),
381
- I("design:returntype", String)
382
- ], J.prototype, "parseDirectory", null), L([
383
- F({
382
+ __decorateMetadata("design:type", Function),
383
+ __decorateMetadata("design:paramtypes", [Object]),
384
+ __decorateMetadata("design:returntype", String)
385
+ ], J.prototype, "parseDirectory", null), __decorate([
386
+ P({
384
387
  description: `Output format, one of ${G.join(", ")}`,
385
388
  flags: "-f, --format [format]"
386
389
  }),
387
- I("design:type", Function),
388
- I("design:paramtypes", [Object]),
389
- I("design:returntype", String)
390
- ], J.prototype, "parseFormat", null), L([
391
- F({
390
+ __decorateMetadata("design:type", Function),
391
+ __decorateMetadata("design:paramtypes", [Object]),
392
+ __decorateMetadata("design:returntype", String)
393
+ ], J.prototype, "parseFormat", null), __decorate([
394
+ P({
392
395
  description: "List only the configured limits",
393
396
  flags: "--limits"
394
397
  }),
395
- I("design:type", Function),
396
- I("design:paramtypes", []),
397
- I("design:returntype", Boolean)
398
- ], J.prototype, "parseLimits", null), J = q = L([
399
- N({
398
+ __decorateMetadata("design:type", Function),
399
+ __decorateMetadata("design:paramtypes", []),
400
+ __decorateMetadata("design:returntype", Boolean)
401
+ ], J.prototype, "parseLimits", null), J = q = __decorate([
402
+ M({
400
403
  description: "List the codometer configuration found beneath a directory",
401
404
  name: "configuration"
402
405
  }),
403
406
  C(),
404
- I("design:paramtypes", [
407
+ __decorateMetadata("design:paramtypes", [
405
408
  t === void 0 ? Object : t,
406
409
  u === void 0 ? Object : u,
407
410
  v === void 0 ? Object : v,
@@ -410,8 +413,8 @@ L([
410
413
  ], J);
411
414
  //#endregion
412
415
  //#region packages/ic-suite/codometer/codometer-cli/src/modules/configuration/configuration.module.ts
413
- var Y = class {};
414
- Y = L([w({
416
+ var Y = class ConfigurationModule {};
417
+ Y = __decorate([w({
415
418
  controllers: [],
416
419
  exports: [J],
417
420
  imports: [e, l],
@@ -419,7 +422,7 @@ Y = L([w({
419
422
  })], Y);
420
423
  //#endregion
421
424
  //#region packages/ic-suite/codometer/codometer-cli/src/modules/measure/measure.command.ts
422
- var X, Z = X = class extends P {
425
+ var X, Z = X = class MeasureCommand extends N {
423
426
  configurationService;
424
427
  measureService;
425
428
  deliveryService;
@@ -507,7 +510,7 @@ var X, Z = X = class extends P {
507
510
  };
508
511
  }
509
512
  resolveWorkingDirectory() {
510
- let e = A.resolve(process.cwd());
513
+ let e = k.resolve(process.cwd());
511
514
  return this.logger.debug("🚀 Started the measurement run", void 0, { directory: e }), e;
512
515
  }
513
516
  parseCheck(e) {
@@ -556,61 +559,61 @@ var X, Z = X = class extends P {
556
559
  });
557
560
  }
558
561
  };
559
- L([
560
- F({
562
+ __decorate([
563
+ P({
561
564
  description: "Fail on a comma-separated set drawn from \"reports\" and \"limits\"",
562
565
  flags: "--check [check]"
563
566
  }),
564
- I("design:type", Function),
565
- I("design:paramtypes", [String]),
566
- I("design:returntype", String)
567
- ], Z.prototype, "parseCheck", null), L([
568
- F({
567
+ __decorateMetadata("design:type", Function),
568
+ __decorateMetadata("design:paramtypes", [String]),
569
+ __decorateMetadata("design:returntype", String)
570
+ ], Z.prototype, "parseCheck", null), __decorate([
571
+ P({
569
572
  description: "Path to the codometer configuration file",
570
573
  flags: "--config [config]"
571
574
  }),
572
- I("design:type", Function),
573
- I("design:paramtypes", [Object]),
574
- I("design:returntype", Object)
575
- ], Z.prototype, "parseConfig", null), L([
576
- F({
575
+ __decorateMetadata("design:type", Function),
576
+ __decorateMetadata("design:paramtypes", [Object]),
577
+ __decorateMetadata("design:returntype", Object)
578
+ ], Z.prototype, "parseConfig", null), __decorate([
579
+ P({
577
580
  description: `What to print to standard output, one of ${n.join(" and ")}`,
578
581
  flags: "-f, --format <format>"
579
582
  }),
580
- I("design:type", Function),
581
- I("design:paramtypes", [String]),
582
- I("design:returntype", String)
583
- ], Z.prototype, "parseFormat", null), L([
584
- F({
583
+ __decorateMetadata("design:type", Function),
584
+ __decorateMetadata("design:paramtypes", [String]),
585
+ __decorateMetadata("design:returntype", String)
586
+ ], Z.prototype, "parseFormat", null), __decorate([
587
+ P({
585
588
  description: "Glob array measured in place of every configured input, with no configured input — not even the built-in codebase one — active",
586
589
  flags: "--inputs [globs...]"
587
590
  }),
588
- I("design:type", Function),
589
- I("design:paramtypes", [String, Array]),
590
- I("design:returntype", Array)
591
- ], Z.prototype, "parseInputs", null), L([
592
- F({
591
+ __decorateMetadata("design:type", Function),
592
+ __decorateMetadata("design:paramtypes", [String, Array]),
593
+ __decorateMetadata("design:returntype", Array)
594
+ ], Z.prototype, "parseInputs", null), __decorate([
595
+ P({
593
596
  description: "Write the JSON report, at the given path or the configured one",
594
597
  flags: "--output-json [outputJson]"
595
598
  }),
596
- I("design:type", Function),
597
- I("design:paramtypes", [Object]),
598
- I("design:returntype", Object)
599
- ], Z.prototype, "parseOutputJson", null), L([
600
- F({
599
+ __decorateMetadata("design:type", Function),
600
+ __decorateMetadata("design:paramtypes", [Object]),
601
+ __decorateMetadata("design:returntype", Object)
602
+ ], Z.prototype, "parseOutputJson", null), __decorate([
603
+ P({
601
604
  description: "Write the markdown badge block, at the given path or the configured one",
602
605
  flags: "--output-markdown [outputMarkdown]"
603
606
  }),
604
- I("design:type", Function),
605
- I("design:paramtypes", [Object]),
606
- I("design:returntype", Object)
607
- ], Z.prototype, "parseOutputMarkdown", null), Z = X = L([
608
- N({
607
+ __decorateMetadata("design:type", Function),
608
+ __decorateMetadata("design:paramtypes", [Object]),
609
+ __decorateMetadata("design:returntype", Object)
610
+ ], Z.prototype, "parseOutputMarkdown", null), Z = X = __decorate([
611
+ M({
609
612
  description: "Measure a directory and produce every resolved output",
610
613
  name: "measure"
611
614
  }),
612
615
  C(),
613
- I("design:paramtypes", [
616
+ __decorateMetadata("design:paramtypes", [
614
617
  t === void 0 ? Object : t,
615
618
  a === void 0 ? Object : a,
616
619
  f === void 0 ? Object : f,
@@ -621,8 +624,8 @@ L([
621
624
  ], Z);
622
625
  //#endregion
623
626
  //#region packages/ic-suite/codometer/codometer-cli/src/modules/measure/measure.module.ts
624
- var Q = class {};
625
- Q = L([w({
627
+ var Q = class MeasureModule {};
628
+ Q = __decorate([w({
626
629
  controllers: [],
627
630
  exports: [Z],
628
631
  imports: [
@@ -637,22 +640,22 @@ Q = L([w({
637
640
  })], Q);
638
641
  //#endregion
639
642
  //#region packages/ic-suite/codometer/codometer-cli/src/main.module.ts
640
- var $ = class {};
641
- $ = L([w({ imports: [
643
+ var $ = class MainModule {};
644
+ $ = __decorate([w({ imports: [
642
645
  E.forRoot({
643
646
  envFilePath: ".env",
644
647
  isGlobal: !0,
645
648
  validate: (e) => V.parse(e)
646
649
  }),
647
- D,
650
+ re,
648
651
  B,
649
652
  W,
650
653
  Y,
651
654
  Q,
652
655
  r,
653
656
  e,
654
- g,
655
- _
657
+ _,
658
+ ee
656
659
  ] })], $);
657
660
  //#endregion
658
- export { J as a, z as c, Y as i, Q as n, W as o, Z as r, U as s, $ as t };
661
+ export { J as a, z as c, Y as i, __name as l, Q as n, W as o, Z as r, U as s, $ as t };
package/dist/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../main.module-BYCq9uc_.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../main.module-5Yekg3hc.js";
2
2
  export { a as ChangesCommand, r as ChangesModule, e as ConfigurationCommand, t as ConfigurationModule, o as MainModule, i as MeasureCommand, n as MeasureModule };
package/dist/src/main.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { c as e, t } from "../main.module-BYCq9uc_.js";
2
+ import { c as e, t } from "../main.module-5Yekg3hc.js";
3
3
  import { CommandFactory as n } from "nest-commander";
4
4
  import "reflect-metadata";
5
5
  //#region packages/ic-suite/codometer/codometer-cli/src/main.utilities.ts
6
- function r(e) {
6
+ function withDefaultCommand(e) {
7
7
  let t = /* @__PURE__ */ new Set([
8
8
  "changes",
9
9
  "configuration",
@@ -14,13 +14,13 @@ function r(e) {
14
14
  }
15
15
  //#endregion
16
16
  //#region packages/ic-suite/codometer/codometer-cli/src/main.ts
17
- async function i() {
17
+ async function main() {
18
18
  e.logToStandardError();
19
- let i = new e();
20
- i.setContext("CommandFactory"), process.argv = [...process.argv.slice(0, 2), ...r(process.argv.slice(2))], await n.run(t, {
19
+ let r = new e();
20
+ r.setContext("CommandFactory"), process.argv = [...process.argv.slice(0, 2), ...withDefaultCommand(process.argv.slice(2))], await n.run(t, {
21
21
  bufferLogs: !0,
22
- logger: i
22
+ logger: r
23
23
  });
24
24
  }
25
- i();
25
+ main();
26
26
  //#endregion
package/package.json CHANGED
@@ -7,10 +7,10 @@
7
7
  "url": "https://github.com/organizzolini/codebase/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@codometer/configuration": "0.0.9",
11
- "@codometer/core": "0.0.9",
12
- "@codometer/measurement": "0.0.9",
13
- "@codometer/output": "0.0.9",
10
+ "@codometer/configuration": "0.0.11",
11
+ "@codometer/core": "0.0.11",
12
+ "@codometer/measurement": "0.0.11",
13
+ "@codometer/output": "0.0.11",
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",
@@ -32,6 +32,7 @@
32
32
  "@types/node": "^26.5.1",
33
33
  "@vitest/coverage-v8": "^5.0.0",
34
34
  "typescript": "^6.0.3",
35
+ "vite": "8.3.2",
35
36
  "vitest": "^5.0.0"
36
37
  },
37
38
  "exports": {
@@ -74,5 +75,5 @@
74
75
  "strict": true
75
76
  },
76
77
  "types": "./dist/src/index.d.ts",
77
- "version": "0.0.9"
78
+ "version": "0.0.11"
78
79
  }