@conformetry/nx 0.0.25 → 0.0.27

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.27 (2026-10-15)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ic-suite,configuration:** ✨ name root files after their project and declare root modules ([#1588](https://github.com/organizzolini/codebase/pull/1588), [#1480](https://github.com/organizzolini/codebase/issues/1480))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated conformetry-configuration to 0.0.27
10
+ - Updated conformetry-generation to 0.0.27
11
+ - Updated conformetry-validation to 0.0.26
12
+ - Updated conformetry-output to 0.0.26
13
+
14
+ ## 0.0.26 (2026-10-15)
15
+
16
+ ### 🧱 Updated Dependencies
17
+
18
+ - Updated conformetry-configuration to 0.0.26
19
+ - Updated conformetry-generation to 0.0.26
20
+ - Updated conformetry-validation to 0.0.25
21
+ - Updated conformetry-output to 0.0.25
22
+
1
23
  ## 0.0.25 (2026-10-15)
2
24
 
3
25
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -540,6 +540,9 @@ graph LR
540
540
  file_codependix_config_ts["codependix.config.ts"]
541
541
  file_codometer_config_ts["codometer.config.ts"]
542
542
  file_eslint_config_ts["eslint.config.ts"]
543
+ file_src_conformetry_nx_main_ts["src/conformetry-nx.main.ts"]
544
+ file_src_conformetry_nx_main_unit_test_ts["src/conformetry-nx.main.unit.test.ts"]
545
+ file_src_conformetry_nx_module_ts["src/conformetry-nx.module.ts"]
543
546
  file_src_executors_validate_executor_ts["src/executors/validate/executor.ts"]
544
547
  file_src_executors_validate_executor_types_ts["src/executors/validate/executor.types.ts"]
545
548
  file_src_executors_validate_executor_unit_test_ts["src/executors/validate/executor.unit.test.ts"]
@@ -548,9 +551,6 @@ graph LR
548
551
  file_src_generators_sync_generator_unit_test_ts["src/generators/sync/generator.unit.test.ts"]
549
552
  file_src_index_ts["src/index.ts"]
550
553
  file_src_index_unit_test_ts["src/index.unit.test.ts"]
551
- file_src_main_module_ts["src/main.module.ts"]
552
- file_src_main_ts["src/main.ts"]
553
- file_src_main_unit_test_ts["src/main.unit.test.ts"]
554
554
  file_src_modules_adapter_adapter_constants_ts["src/modules/adapter/adapter.constants.ts"]
555
555
  file_src_modules_adapter_adapter_module_ts["src/modules/adapter/adapter.module.ts"]
556
556
  file_src_modules_adapter_adapter_service_ts["src/modules/adapter/adapter.service.ts"]
@@ -600,6 +600,10 @@ graph LR
600
600
  file_testing_setup_ts["testing/setup.ts"]
601
601
  file_vite_config_ts["vite.config.ts"]
602
602
  file_vitest_config_ts["vitest.config.ts"]
603
+ file_src_conformetry_nx_main_ts --> file_src_modules_generator_bootstrap_utilities_ts
604
+ file_src_conformetry_nx_main_unit_test_ts --> file_src_modules_generator_bootstrap_utilities_ts
605
+ file_src_conformetry_nx_module_ts --> file_src_modules_generator_generator_module_ts
606
+ file_src_conformetry_nx_module_ts --> file_src_modules_plugin_plugin_module_ts
603
607
  file_src_executors_validate_executor_ts --> file_src_executors_validate_executor_types_ts
604
608
  file_src_executors_validate_executor_ts --> file_src_modules_plugin_plugin_context_utilities_ts
605
609
  file_src_executors_validate_executor_unit_test_ts --> file_src_executors_validate_executor_ts
@@ -614,10 +618,6 @@ graph LR
614
618
  file_src_index_ts --> file_src_modules_plugin_plugin_constants_ts
615
619
  file_src_index_unit_test_ts --> file_src_index_ts
616
620
  file_src_index_unit_test_ts --> file_src_modules_plugin_plugin_context_utilities_ts
617
- file_src_main_module_ts --> file_src_modules_generator_generator_module_ts
618
- file_src_main_module_ts --> file_src_modules_plugin_plugin_module_ts
619
- file_src_main_ts --> file_src_modules_generator_bootstrap_utilities_ts
620
- file_src_main_unit_test_ts --> file_src_modules_generator_bootstrap_utilities_ts
621
621
  file_src_modules_adapter_adapter_module_ts --> file_src_modules_adapter_adapter_service_ts
622
622
  file_src_modules_adapter_adapter_service_ts --> file_src_modules_adapter_adapter_constants_ts
623
623
  file_src_modules_adapter_adapter_service_ts --> file_src_modules_adapter_adapter_types_ts
@@ -663,7 +663,7 @@ graph LR
663
663
  file_src_modules_paths_paths_service_unit_test_ts --> file_src_modules_paths_paths_module_ts
664
664
  file_src_modules_paths_paths_service_unit_test_ts --> file_src_modules_paths_paths_service_ts
665
665
  file_src_modules_paths_paths_service_unit_test_ts --> file_src_modules_scope_scope_service_ts
666
- file_src_modules_plugin_plugin_context_utilities_ts --> file_src_main_module_ts
666
+ file_src_modules_plugin_plugin_context_utilities_ts --> file_src_conformetry_nx_module_ts
667
667
  file_src_modules_plugin_plugin_context_utilities_ts --> file_src_modules_generator_generator_service_ts
668
668
  file_src_modules_plugin_plugin_context_utilities_ts --> file_src_modules_options_options_service_ts
669
669
  file_src_modules_plugin_plugin_context_utilities_ts --> file_src_modules_plugin_plugin_constants_ts
@@ -721,8 +721,8 @@ graph LR
721
721
 
722
722
  ### Project
723
723
 
724
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-6169-22c55e?style=flat-square)
725
- ![Repository Size](https://img.shields.io/badge/Repository_Size-220.08_kB-6b7280?style=flat-square)
724
+ ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-6173-22c55e?style=flat-square)
725
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-221.10_kB-6b7280?style=flat-square)
726
726
  ![Folders](https://img.shields.io/badge/Folders-15-4a4a4a?style=flat-square)
727
727
  ![Source Files](https://img.shields.io/badge/Source_Files-65-3178c6?style=flat-square)
728
728
 
@@ -753,8 +753,8 @@ graph LR
753
753
  ![Constants](https://img.shields.io/badge/Constants-280-dc2626?style=flat-square)
754
754
  ![Imports](https://img.shields.io/badge/Imports-266-0284c7?style=flat-square)
755
755
  ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-77-ea580c?style=flat-square)
756
- ![Comments](https://img.shields.io/badge/Comments-342-64748b?style=flat-square)
757
- ![Comment Lines](https://img.shields.io/badge/Comment_Lines-741-475569?style=flat-square)
756
+ ![Comments](https://img.shields.io/badge/Comments-343-64748b?style=flat-square)
757
+ ![Comment Lines](https://img.shields.io/badge/Comment_Lines-742-475569?style=flat-square)
758
758
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-0-ca8a04?style=flat-square)
759
759
 
760
760
  ### Python
@@ -910,20 +910,20 @@ graph LR
910
910
  ### Markdown
911
911
 
912
912
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
913
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-428-1f6feb?style=flat-square)
913
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-450-1f6feb?style=flat-square)
914
914
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
915
- ![H2](https://img.shields.io/badge/H2-28-8b5cf6?style=flat-square)
916
- ![H3](https://img.shields.io/badge/H3-38-a78bfa?style=flat-square)
915
+ ![H2](https://img.shields.io/badge/H2-30-8b5cf6?style=flat-square)
916
+ ![H3](https://img.shields.io/badge/H3-41-a78bfa?style=flat-square)
917
917
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
918
918
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
919
919
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
920
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-132-64748b?style=flat-square)
921
- ![Lists](https://img.shields.io/badge/Lists-32-16a34a?style=flat-square)
922
- ![List Items](https://img.shields.io/badge/List_Items-112-22c55e?style=flat-square)
920
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-141-64748b?style=flat-square)
921
+ ![Lists](https://img.shields.io/badge/Lists-35-16a34a?style=flat-square)
922
+ ![List Items](https://img.shields.io/badge/List_Items-121-22c55e?style=flat-square)
923
923
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
924
924
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
925
925
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
926
- ![Links](https://img.shields.io/badge/Links-17-059669?style=flat-square)
926
+ ![Links](https://img.shields.io/badge/Links-19-059669?style=flat-square)
927
927
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
928
928
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-11-dc2626?style=flat-square)
929
929
  ![Inline Code](https://img.shields.io/badge/Inline_Code-73-ef4444?style=flat-square)
@@ -1,21 +1,21 @@
1
- import { _ as e, d as t, g as n, i as r, n as i, t as a } from "./plugin-context.utilities-BHfGQv2V.js";
1
+ import { b as e, g as t, h as n, i as r, n as i, t as a } from "./plugin-context.utilities-nggdWdJp.js";
2
2
  import { existsSync as o, lstatSync as s, mkdirSync as c, readFileSync as l, realpathSync as u, rmSync as d, symlinkSync as f, writeFileSync as p } from "node:fs";
3
3
  import m from "node:path";
4
4
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/bootstrap.utilities.ts
5
- async function bootstrapPlugin(t) {
5
+ async function bootstrapPlugin(e) {
6
6
  let s = await a(), c = await i(), l = await r(), u = await s.emitPlugin({
7
7
  configurationPath: c.resolveConfigurationPath({
8
- exists: (e) => o(m.resolve(t, e)),
9
- nxConfiguration: readNxConfiguration(t)
8
+ exists: (t) => o(m.resolve(e, t)),
9
+ nxConfiguration: readNxConfiguration(e)
10
10
  }),
11
11
  outputPath: n,
12
- packageName: e,
13
- projects: l.listWorkspaceProjects(t)
12
+ packageName: t,
13
+ projects: l.listWorkspaceProjects(e)
14
14
  });
15
15
  return writePlugin({
16
16
  files: u,
17
- workspaceRoot: t
18
- }), linkPlugin(t), u;
17
+ workspaceRoot: e
18
+ }), linkPlugin(e), u;
19
19
  }
20
20
  async function runBootstrapCli(e) {
21
21
  try {
@@ -32,19 +32,19 @@ function leadsTo(e) {
32
32
  return !o(e.linkPath);
33
33
  }
34
34
  }
35
- function linkPlugin(t) {
36
- let r = m.resolve(t, "node_modules", e), i = m.resolve(t, n);
35
+ function linkPlugin(e) {
36
+ let r = m.resolve(e, "node_modules", t), i = m.resolve(e, n);
37
37
  if (c(m.dirname(r), { recursive: !0 }), s(r, { throwIfNoEntry: !1 }) !== void 0 && !leadsTo({
38
38
  linkPath: r,
39
39
  outputPath: i
40
- })) throw Error(`node_modules/${e} is an installed package, not a link to ${n}. Rename the emitted plugin via the sync generator's packageName option.`);
40
+ })) throw Error(`node_modules/${t} is an installed package, not a link to ${n}. Rename the emitted plugin via the sync generator's packageName option.`);
41
41
  d(r, {
42
42
  force: !0,
43
43
  recursive: !0
44
44
  }), f(m.relative(m.dirname(r), i), r, "dir");
45
45
  }
46
- function readNxConfiguration(e) {
47
- let n = m.resolve(e, t);
46
+ function readNxConfiguration(t) {
47
+ let n = m.resolve(t, e);
48
48
  if (o(n)) return JSON.parse(l(n, "utf8"));
49
49
  }
50
50
  function writePlugin(e) {
@@ -1,19 +1,36 @@
1
+ import e, { existsSync as t, mkdirSync as n, readFileSync as r, readdirSync as i } from "node:fs";
2
+ import a from "node:path";
1
3
  import "reflect-metadata";
2
- import { NestFactory as e } from "@nestjs/core";
3
- import { ConsoleLogger as t, Global as n, Injectable as r, Module as i, Scope as a } from "@nestjs/common";
4
- import o, { existsSync as s, mkdirSync as c, readFileSync as l, readdirSync as u } from "node:fs";
5
- import d from "node:path";
6
- import f from "pino";
7
- import { ConfigurationModule as p, ConfigurationService as m, missingDirectoryError as ee } from "@conformetry/configuration";
8
- import { GenerationModule as h, GenerationService as g } from "@conformetry/generation";
9
- import { ReportingModule as _, ReportingService as v } from "@conformetry/output";
10
- import { ValidationModule as y, ValidationService as b } from "@conformetry/validation";
11
- import { formatFiles as te, getProjects as ne, readProjectConfiguration as x } from "@nx/devkit";
4
+ import { NestFactory as o } from "@nestjs/core";
5
+ import { ConsoleLogger as s, Global as c, Injectable as l, Module as u, Scope as ee } from "@nestjs/common";
6
+ import d from "pino";
7
+ import { ConfigurationModule as f, ConfigurationService as p, missingDirectoryError as te } from "@conformetry/configuration";
8
+ import { GenerationModule as m, GenerationService as h } from "@conformetry/generation";
9
+ import { ReportingModule as g, ReportingService as _ } from "@conformetry/output";
10
+ import { ValidationModule as v, ValidationService as y } from "@conformetry/validation";
11
+ import { formatFiles as ne, getProjects as b, readProjectConfiguration as re } from "@nx/devkit";
12
12
  //#region \0rolldown/runtime.js
13
- var S = Object.defineProperty, __name = (e, t) => S(e, "name", {
13
+ var ie = Object.defineProperty, __name = (e, t) => ie(e, "name", {
14
14
  value: t,
15
15
  configurable: !0
16
- }), re = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\s+/u, ie = /^([A-Za-z]+)/, ae = /* @__PURE__ */ new Set([
16
+ }), x = "@conformetry/nx", S = [
17
+ "conformetry.config.ts",
18
+ "conformetry.config.mts",
19
+ "conformetry.config.cts",
20
+ "conformetry.config.js",
21
+ "conformetry.config.mjs",
22
+ "conformetry.config.cjs",
23
+ "conformetry.config.json",
24
+ "conformetry.config.jsonc",
25
+ "conformetry.json",
26
+ "conformetry.jsonc",
27
+ ".conformetryrc.ts",
28
+ ".conformetryrc.js",
29
+ ".conformetryrc.json",
30
+ "conformetryrc.ts",
31
+ "conformetryrc.js",
32
+ "conformetryrc.json"
33
+ ], C = "nx.json", ae = "conformetry-validate", oe = ["configurationPath", "validateTargetName"], se = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\s+/u, w = /^([A-Za-z]+)/, T = /* @__PURE__ */ new Set([
17
34
  "built",
18
35
  "cut",
19
36
  "found",
@@ -31,7 +48,7 @@ var S = Object.defineProperty, __name = (e, t) => S(e, "name", {
31
48
  "split",
32
49
  "took",
33
50
  "wrote"
34
- ]), oe = /* @__PURE__ */ new Set([
51
+ ]), E = /* @__PURE__ */ new Set([
35
52
  "CommandFactory",
36
53
  "ExceptionHandler",
37
54
  "GraphQLModule",
@@ -57,9 +74,9 @@ function __decorate(e, t, n, r) {
57
74
  }
58
75
  //#endregion
59
76
  //#region projects/logging/src/modules/logger/logger.service.ts
60
- var C, w = class LoggerService extends t {
77
+ var D, O = class LoggerService extends s {
61
78
  static {
62
- C = this;
79
+ D = this;
63
80
  }
64
81
  constructor() {
65
82
  super();
@@ -67,15 +84,15 @@ var C, w = class LoggerService extends t {
67
84
  static isProduction = process.env.NODE_ENV === "production";
68
85
  static rootLogger;
69
86
  static writesToStandardError = !1;
70
- child = C.root;
87
+ child = D.root;
71
88
  static createRootLogger() {
72
89
  let e = process.env.LOG_LEVEL ?? "info";
73
- return C.isProduction ? C.writesToStandardError ? f({ level: e }, f.destination(2)) : f({ level: e }) : f({
90
+ return D.isProduction ? D.writesToStandardError ? d({ level: e }, d.destination(2)) : d({ level: e }) : d({
74
91
  level: e,
75
92
  transport: {
76
93
  options: {
77
94
  colorize: !0,
78
- destination: C.writesToStandardError ? 2 : 1,
95
+ destination: D.writesToStandardError ? 2 : 1,
79
96
  ignore: "pid,hostname,emoji",
80
97
  messageFormat: "{emoji} {msg}",
81
98
  singleLine: !0
@@ -85,10 +102,10 @@ var C, w = class LoggerService extends t {
85
102
  });
86
103
  }
87
104
  static logToStandardError() {
88
- C.rootLogger === void 0 ? C.writesToStandardError = !0 : 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.");
105
+ D.rootLogger === void 0 ? D.writesToStandardError = !0 : 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.");
89
106
  }
90
107
  assertConventionalMessage(e) {
91
- if (C.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
108
+ if (D.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
92
109
  let t = this.getConventionalMessageViolation(e.parsed);
93
110
  if (t !== void 0) throw Error(t);
94
111
  }
@@ -99,21 +116,21 @@ var C, w = class LoggerService extends t {
99
116
  }), {
100
117
  ...e.data,
101
118
  context: e.context,
102
- ...C.isProduction ? {} : { emoji: e.parsed.emoji }
119
+ ...D.isProduction ? {} : { emoji: e.parsed.emoji }
103
120
  };
104
121
  }
105
122
  getConventionalMessageViolation(e) {
106
123
  let t = e.emoji, n = e.text;
107
124
  if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
108
- let r = ie.exec(n)?.[1];
125
+ let r = w.exec(n)?.[1];
109
126
  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}"`;
110
127
  }
111
128
  isConventionalVerb(e) {
112
129
  let t = e.toLowerCase();
113
- return t.endsWith("ing") || t.endsWith("ed") || ae.has(t);
130
+ return t.endsWith("ing") || t.endsWith("ed") || T.has(t);
114
131
  }
115
132
  parseMessage(e) {
116
- let t = String(e), n = re.exec(t), r = n?.[1];
133
+ let t = String(e), n = se.exec(t), r = n?.[1];
117
134
  return r === void 0 ? {
118
135
  emoji: void 0,
119
136
  text: t
@@ -123,10 +140,10 @@ var C, w = class LoggerService extends t {
123
140
  };
124
141
  }
125
142
  shouldSkipConventionalMessageValidation(e) {
126
- return e !== void 0 && oe.has(e);
143
+ return e !== void 0 && E.has(e);
127
144
  }
128
145
  static get root() {
129
- return C.rootLogger ??= C.createRootLogger(), C.rootLogger;
146
+ return D.rootLogger ??= D.createRootLogger(), D.rootLogger;
130
147
  }
131
148
  buildErrorLogEntry(e, t) {
132
149
  let n = t instanceof Error ? t.stack || t.message : String(t);
@@ -136,8 +153,8 @@ var C, w = class LoggerService extends t {
136
153
  };
137
154
  }
138
155
  createTimestampedOutputLogFilePath(e) {
139
- let t = d.join(process.cwd(), "output");
140
- return s(t) || c(t, { recursive: !0 }), d.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
156
+ let r = a.join(process.cwd(), "output");
157
+ return t(r) || n(r, { recursive: !0 }), a.join(r, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
141
158
  }
142
159
  debug(e, t, n) {
143
160
  let r = this.parseMessage(e);
@@ -170,7 +187,7 @@ var C, w = class LoggerService extends t {
170
187
  this.info(e, t, n);
171
188
  }
172
189
  setContext(e) {
173
- super.setContext(e), this.child = C.root.child({ context: e });
190
+ super.setContext(e), this.child = D.root.child({ context: e });
174
191
  }
175
192
  verbose(e, t, n) {
176
193
  let r = this.parseMessage(e);
@@ -189,19 +206,19 @@ var C, w = class LoggerService extends t {
189
206
  }), r.text);
190
207
  }
191
208
  };
192
- w = C = __decorate([r({ scope: a.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], w);
209
+ O = D = __decorate([l({ scope: ee.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], O);
193
210
  //#endregion
194
211
  //#region projects/logging/src/modules/logger/logger.module.ts
195
- var T = class LoggerModule {};
196
- T = __decorate([n(), i({
212
+ var k = class LoggerModule {};
213
+ k = __decorate([c(), u({
197
214
  controllers: [],
198
- exports: [w],
215
+ exports: [O],
199
216
  imports: [],
200
- providers: [w]
201
- })], T);
217
+ providers: [O]
218
+ })], k);
202
219
  //#endregion
203
220
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts
204
- var E = class ScopeService {
221
+ var A = class ScopeService {
205
222
  configurationService;
206
223
  constructor(e) {
207
224
  this.configurationService = e;
@@ -216,7 +233,7 @@ var E = class ScopeService {
216
233
  let t = e.group.patterns;
217
234
  return !this.matchesProject(e) || t === void 0 || t.length === 0 ? [] : this.isProjectGroup(e.group) ? [{
218
235
  ...e.group,
219
- patterns: t.map((t) => d.posix.join(e.project.root, t))
236
+ patterns: t.map((t) => a.posix.join(e.project.root, t))
220
237
  }] : [e.group];
221
238
  }
222
239
  resolveScopedDirectory(e) {
@@ -233,19 +250,19 @@ var E = class ScopeService {
233
250
  }))).map((e) => e.name).toSorted((e, t) => e.localeCompare(t));
234
251
  }
235
252
  };
236
- E = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m])], E);
253
+ A = __decorate([l(), __decorateMetadata("design:paramtypes", [p === void 0 ? Object : p])], A);
237
254
  //#endregion
238
255
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.module.ts
239
- var D = class ScopeModule {};
240
- D = __decorate([i({
256
+ var j = class ScopeModule {};
257
+ j = __decorate([u({
241
258
  controllers: [],
242
- exports: [E],
243
- imports: [p],
244
- providers: [E]
245
- })], D);
259
+ exports: [A],
260
+ imports: [f],
261
+ providers: [A]
262
+ })], j);
246
263
  //#endregion
247
264
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.constants.ts
248
- var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry/nx-generators", ce = "// Generated from the conformetry configuration. Do not edit.", le = "The conformetry generator plugin is out of sync with the conformetry configuration.", M = "conformetry", ue = "node_modules/@nx/devkit/src/generators/generators-schema.json", N = class GeneratorService {
265
+ var M = "project", ce = "module", le = "type", ue = "directory", N = ".conformetry/nx-generators", de = "// Generated from the conformetry configuration. Do not edit.", P = "The conformetry generator plugin is out of sync with the conformetry configuration.", F = "conformetry", fe = "node_modules/@nx/devkit/src/generators/generators-schema.json", I = class GeneratorService {
249
266
  configurationService;
250
267
  scopeService;
251
268
  constructor(e, t) {
@@ -253,7 +270,7 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
253
270
  }
254
271
  buildGeneratorModule(e) {
255
272
  return [
256
- ce,
273
+ de,
257
274
  "",
258
275
  "import { runConformetryGenerator } from \"@conformetry/nx\";",
259
276
  "",
@@ -283,7 +300,7 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
283
300
  schema: `./src/schemas/${n.name}.json`
284
301
  };
285
302
  return this.stringify({
286
- $schema: d.relative(e.outputPath, ue).split(d.sep).join("/"),
303
+ $schema: a.relative(e.outputPath, fe).split(a.sep).join("/"),
287
304
  generators: t
288
305
  });
289
306
  }
@@ -298,10 +315,10 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
298
315
  });
299
316
  }
300
317
  buildSchemaProperties(e) {
301
- let t = e.definition.inputs[O];
318
+ let t = e.definition.inputs[M];
302
319
  return t === void 0 || e.scopedProjectNames === void 0 || e.scopedProjectNames.length === 0 ? e.definition.inputs : {
303
320
  ...e.definition.inputs,
304
- [O]: {
321
+ [M]: {
305
322
  ...t,
306
323
  enum: e.scopedProjectNames,
307
324
  "x-prompt": {
@@ -331,11 +348,11 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
331
348
  definitions: t,
332
349
  outputPath: e.outputPath
333
350
  }),
334
- filePath: d.join(e.outputPath, "generators.json")
351
+ filePath: a.join(e.outputPath, "generators.json")
335
352
  },
336
353
  ...t.map((t) => ({
337
354
  content: this.buildGeneratorModule(t),
338
- filePath: d.join(e.outputPath, `src/generators/${t.name}.ts`)
355
+ filePath: a.join(e.outputPath, `src/generators/${t.name}.ts`)
339
356
  })),
340
357
  ...t.map((t) => ({
341
358
  content: this.buildSchema({
@@ -345,7 +362,7 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
345
362
  projects: e.projects
346
363
  })
347
364
  }),
348
- filePath: d.join(e.outputPath, `src/schemas/${t.name}.json`)
365
+ filePath: a.join(e.outputPath, `src/schemas/${t.name}.json`)
349
366
  })),
350
367
  {
351
368
  content: this.stringify({
@@ -360,49 +377,49 @@ var O = "project", k = "module", se = "type", A = "directory", j = ".conformetry
360
377
  type: "module",
361
378
  version: "0.0.1"
362
379
  }),
363
- filePath: d.join(e.outputPath, "package.json")
380
+ filePath: a.join(e.outputPath, "package.json")
364
381
  }
365
382
  ];
366
383
  }
367
384
  };
368
- N = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m, E === void 0 ? Object : E])], N);
385
+ I = __decorate([l(), __decorateMetadata("design:paramtypes", [p === void 0 ? Object : p, A === void 0 ? Object : A])], I);
369
386
  //#endregion
370
387
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.module.ts
371
- var P = class GeneratorModule {};
372
- P = __decorate([i({
388
+ var L = class GeneratorModule {};
389
+ L = __decorate([u({
373
390
  controllers: [],
374
391
  exports: [
375
- p,
376
- N,
377
- D
392
+ f,
393
+ I,
394
+ j
378
395
  ],
379
- imports: [p, D],
380
- providers: [N]
381
- })], P);
396
+ imports: [f, j],
397
+ providers: [I]
398
+ })], L);
382
399
  //#endregion
383
400
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.constants.ts
384
- var de = "utf8", F = class AdapterService {
401
+ var R = "utf8", z = class AdapterService {
385
402
  constructor() {}
386
- async listDirectory(e) {
387
- let t = this.resolveTreePath(e);
388
- return t === void 0 ? o.readdirSync(e.directoryPath, { withFileTypes: !0 }).map((e) => ({
403
+ async listDirectory(t) {
404
+ let n = this.resolveTreePath(t);
405
+ return n === void 0 ? e.readdirSync(t.directoryPath, { withFileTypes: !0 }).map((e) => ({
389
406
  isDirectory: e.isDirectory(),
390
407
  name: e.name
391
- })) : await Promise.resolve(e.tree.children(t).map((n) => ({
392
- isDirectory: !e.tree.isFile([t, n].join("/")),
393
- name: n
408
+ })) : await Promise.resolve(t.tree.children(n).map((e) => ({
409
+ isDirectory: !t.tree.isFile([n, e].join("/")),
410
+ name: e
394
411
  })));
395
412
  }
396
- async readFile(e) {
397
- let t = this.resolveTreePath({
398
- directoryPath: e.filePath,
399
- workspaceRoot: e.workspaceRoot
400
- }), n = t === void 0 ? null : e.tree.read(t, de);
401
- return await Promise.resolve(n ?? o.readFileSync(e.filePath, "utf8"));
413
+ async readFile(t) {
414
+ let n = this.resolveTreePath({
415
+ directoryPath: t.filePath,
416
+ workspaceRoot: t.workspaceRoot
417
+ }), r = n === void 0 ? null : t.tree.read(n, R);
418
+ return await Promise.resolve(r ?? e.readFileSync(t.filePath, "utf8"));
402
419
  }
403
420
  resolveTreePath(e) {
404
- let t = d.relative(e.workspaceRoot, e.directoryPath);
405
- if (!(t.startsWith("..") || d.isAbsolute(t))) return t.split(d.sep).join("/");
421
+ let t = a.relative(e.workspaceRoot, e.directoryPath);
422
+ if (!(t.startsWith("..") || a.isAbsolute(t))) return t.split(a.sep).join("/");
406
423
  }
407
424
  createAdapters(e) {
408
425
  return {
@@ -429,35 +446,35 @@ var de = "utf8", F = class AdapterService {
429
446
  }
430
447
  },
431
448
  formatter: { formatFiles: async () => {
432
- await te(e.tree);
449
+ await ne(e.tree);
433
450
  } }
434
451
  };
435
452
  }
436
453
  };
437
- F = __decorate([r(), __decorateMetadata("design:paramtypes", [])], F);
454
+ z = __decorate([l(), __decorateMetadata("design:paramtypes", [])], z);
438
455
  //#endregion
439
456
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.module.ts
440
- var I = class AdapterModule {};
441
- I = __decorate([i({
457
+ var B = class AdapterModule {};
458
+ B = __decorate([u({
442
459
  controllers: [],
443
- exports: [F],
460
+ exports: [z],
444
461
  imports: [],
445
- providers: [F]
446
- })], I);
462
+ providers: [z]
463
+ })], B);
447
464
  //#endregion
448
465
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts
449
- var L = class InstancesService {
466
+ var V = class InstancesService {
450
467
  configurationService;
451
468
  scopeService;
452
469
  constructor(e, t) {
453
470
  this.configurationService = e, this.scopeService = t;
454
471
  }
455
472
  isInsideProject(e) {
456
- let t = d.relative(e.projectRootPath, d.join(e.instance.path, e.instance.nameStem));
457
- return t !== ".." && !t.startsWith(`..${d.sep}`) && !d.isAbsolute(t);
473
+ let t = a.relative(e.projectRootPath, a.join(e.instance.path, e.instance.nameStem));
474
+ return t !== ".." && !t.startsWith(`..${a.sep}`) && !a.isAbsolute(t);
458
475
  }
459
476
  async findProjectInstances(e) {
460
- let t = await this.configurationService.loadConformetryConfiguration(e.configurationPath), n = d.resolve(e.workspaceRoot, e.project.root), r = t.flatMap((e) => e.instances).flatMap((t) => this.scopeService.resolveGroup({
477
+ let t = await this.configurationService.loadConformetryConfiguration(e.configurationPath), n = a.resolve(e.workspaceRoot, e.project.root), r = t.flatMap((e) => e.instances).flatMap((t) => this.scopeService.resolveGroup({
461
478
  group: t,
462
479
  project: e.project
463
480
  })).flatMap((t) => this.configurationService.findInstances({
@@ -480,36 +497,19 @@ var L = class InstancesService {
480
497
  });
481
498
  }
482
499
  };
483
- L = __decorate([r(), __decorateMetadata("design:paramtypes", [m === void 0 ? Object : m, E === void 0 ? Object : E])], L);
500
+ V = __decorate([l(), __decorateMetadata("design:paramtypes", [p === void 0 ? Object : p, A === void 0 ? Object : A])], V);
484
501
  //#endregion
485
502
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.module.ts
486
- var R = class InstancesModule {};
487
- R = __decorate([i({
503
+ var H = class InstancesModule {};
504
+ H = __decorate([u({
488
505
  controllers: [],
489
- exports: [L, D],
490
- imports: [p, D],
491
- providers: [L]
492
- })], R);
506
+ exports: [V, j],
507
+ imports: [f, j],
508
+ providers: [V]
509
+ })], H);
493
510
  //#endregion
494
- //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/options/options.constants.ts
495
- var z = "@conformetry/nx", B = [
496
- "conformetry.config.ts",
497
- "conformetry.config.mts",
498
- "conformetry.config.cts",
499
- "conformetry.config.js",
500
- "conformetry.config.mjs",
501
- "conformetry.config.cjs",
502
- "conformetry.config.json",
503
- "conformetry.config.jsonc",
504
- "conformetry.json",
505
- "conformetry.jsonc",
506
- ".conformetryrc.ts",
507
- ".conformetryrc.js",
508
- ".conformetryrc.json",
509
- "conformetryrc.ts",
510
- "conformetryrc.js",
511
- "conformetryrc.json"
512
- ], V = "nx.json", fe = "conformetry-validate", pe = ["configurationPath", "validateTargetName"], H = class OptionsService {
511
+ //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/options/options.service.ts
512
+ var U = class OptionsService {
513
513
  constructor() {}
514
514
  isUnknownArray(e) {
515
515
  return Array.isArray(e);
@@ -531,25 +531,25 @@ var z = "@conformetry/nx", B = [
531
531
  return typeof t == "string" && t !== "" ? t : void 0;
532
532
  }
533
533
  resolveConfigurationPath(e) {
534
- return this.readRegisteredConfigurationPath(e.nxConfiguration) ?? B.find((t) => e.exists(t)) ?? B[0];
534
+ return this.readRegisteredConfigurationPath(e.nxConfiguration) ?? S.find((t) => e.exists(t)) ?? S[0];
535
535
  }
536
536
  resolveGeneratorInputs(e) {
537
537
  if (typeof e != "object" || !e) return {};
538
538
  let t = {};
539
- for (let [n, r] of Object.entries({ ...e })) pe.includes(n) || typeof r != "string" || (t[n] = r);
539
+ for (let [n, r] of Object.entries({ ...e })) oe.includes(n) || typeof r != "string" || (t[n] = r);
540
540
  return t;
541
541
  }
542
542
  resolvePluginOptions(e) {
543
543
  if (typeof e != "object" || !e) return {
544
- configurationPath: B[0],
545
- validateTargetName: fe
544
+ configurationPath: S[0],
545
+ validateTargetName: ae
546
546
  };
547
547
  let t = { ...e };
548
548
  return {
549
549
  configurationPath: this.readString({
550
550
  key: "configurationPath",
551
551
  options: t
552
- }) ?? B[0],
552
+ }) ?? S[0],
553
553
  validateTargetName: this.readString({
554
554
  key: "validateTargetName",
555
555
  options: t
@@ -557,19 +557,19 @@ var z = "@conformetry/nx", B = [
557
557
  };
558
558
  }
559
559
  };
560
- H = __decorate([r(), __decorateMetadata("design:paramtypes", [])], H);
560
+ U = __decorate([l(), __decorateMetadata("design:paramtypes", [])], U);
561
561
  //#endregion
562
562
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/options/options.module.ts
563
- var U = class OptionsModule {};
564
- U = __decorate([i({
563
+ var W = class OptionsModule {};
564
+ W = __decorate([u({
565
565
  controllers: [],
566
- exports: [H],
566
+ exports: [U],
567
567
  imports: [],
568
- providers: [H]
569
- })], U);
568
+ providers: [U]
569
+ })], W);
570
570
  //#endregion
571
571
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts
572
- var W = class PathsService {
572
+ var G = class PathsService {
573
573
  instancesService;
574
574
  configurationService;
575
575
  scopeService;
@@ -588,20 +588,20 @@ var W = class PathsService {
588
588
  let t = /* @__PURE__ */ new Map();
589
589
  for (let n of e.instances) {
590
590
  let r = n.path;
591
- r.startsWith(e.projectRootPath + d.sep) && t.set(r, (t.get(r) ?? 0) + 1);
591
+ r.startsWith(e.projectRootPath + a.sep) && t.set(r, (t.get(r) ?? 0) + 1);
592
592
  }
593
593
  return [...t.entries()].toSorted(([e, t], [n, r]) => r - t || e.localeCompare(n))[0]?.[0];
594
594
  }
595
595
  resolveModulePath(e) {
596
596
  let t = e.instances.find((t) => t.nameStem === e.moduleName);
597
- return t === void 0 ? void 0 : d.join(t.path, t.nameStem);
597
+ return t === void 0 ? void 0 : a.join(t.path, t.nameStem);
598
598
  }
599
599
  resolveNewProjectPath(e) {
600
- if (e.type === void 0) throw ee({
600
+ if (e.type === void 0) throw te({
601
601
  generatorName: e.generatorName,
602
602
  hint: "Or declare a type input on the generator, so the project is placed beside the others of its type."
603
603
  });
604
- return d.resolve(e.workspaceRoot, this.resolveTypeDirectoryPath({
604
+ return a.resolve(e.workspaceRoot, this.resolveTypeDirectoryPath({
605
605
  tree: e.tree,
606
606
  type: e.type
607
607
  }) ?? e.type);
@@ -612,22 +612,22 @@ var W = class PathsService {
612
612
  return t === void 0 ? void 0 : this.scopeService.resolveScopedDirectory(t.instances);
613
613
  }
614
614
  resolveTypeDirectoryPath(e) {
615
- for (let [, t] of ne(e.tree)) {
615
+ for (let [, t] of b(e.tree)) {
616
616
  let [n] = t.root.split("/");
617
617
  if (n === e.type) return n;
618
618
  }
619
619
  }
620
620
  async resolveGenerationPath(e) {
621
- let t = e.inputs[A];
622
- if (t !== void 0) return d.resolve(e.workspaceRoot, t);
623
- let n = e.inputs[O];
621
+ let t = e.inputs[ue];
622
+ if (t !== void 0) return a.resolve(e.workspaceRoot, t);
623
+ let n = e.inputs[M];
624
624
  if (n === void 0) return this.resolveNewProjectPath({
625
625
  generatorName: e.generatorName,
626
626
  tree: e.tree,
627
- type: e.inputs[se],
627
+ type: e.inputs[le],
628
628
  workspaceRoot: e.workspaceRoot
629
629
  });
630
- let r = x(e.tree, n), i = d.resolve(e.workspaceRoot, r.root), a = await this.instancesService.findProjectInstances({
630
+ let r = re(e.tree, n), i = a.resolve(e.workspaceRoot, r.root), o = await this.instancesService.findProjectInstances({
631
631
  configurationPath: e.configurationPath,
632
632
  project: {
633
633
  name: n,
@@ -635,54 +635,54 @@ var W = class PathsService {
635
635
  tags: r.tags ?? []
636
636
  },
637
637
  workspaceRoot: e.workspaceRoot
638
- }), o = e.inputs[k];
639
- if (o !== void 0) return this.requireModulePath({
640
- instances: a,
641
- moduleName: o,
638
+ }), s = e.inputs[ce];
639
+ if (s !== void 0) return this.requireModulePath({
640
+ instances: o,
641
+ moduleName: s,
642
642
  projectName: e.inputs.project ?? ""
643
643
  });
644
- let s = await this.resolveScopedDirectory({
644
+ let c = await this.resolveScopedDirectory({
645
645
  configurationPath: e.configurationPath,
646
646
  generatorName: e.generatorName
647
647
  });
648
- return s === void 0 ? this.resolveModuleParentPath({
649
- instances: a,
648
+ return c === void 0 ? this.resolveModuleParentPath({
649
+ instances: o,
650
650
  projectRootPath: i
651
- }) ?? i : d.join(i, s);
651
+ }) ?? i : a.join(i, c);
652
652
  }
653
653
  };
654
- W = __decorate([r(), __decorateMetadata("design:paramtypes", [
655
- L === void 0 ? Object : L,
656
- m === void 0 ? Object : m,
657
- E === void 0 ? Object : E
658
- ])], W);
654
+ G = __decorate([l(), __decorateMetadata("design:paramtypes", [
655
+ V === void 0 ? Object : V,
656
+ p === void 0 ? Object : p,
657
+ A === void 0 ? Object : A
658
+ ])], G);
659
659
  //#endregion
660
660
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.module.ts
661
- var G = class PathsModule {};
662
- G = __decorate([i({
661
+ var K = class PathsModule {};
662
+ K = __decorate([u({
663
663
  controllers: [],
664
664
  exports: [
665
- R,
666
- p,
667
- W,
668
- D
665
+ H,
666
+ f,
667
+ G,
668
+ j
669
669
  ],
670
670
  imports: [
671
- R,
672
- p,
673
- D
671
+ H,
672
+ f,
673
+ j
674
674
  ],
675
- providers: [W]
676
- })], G);
677
- var me = ".nxignore", K = class ProjectsService {
675
+ providers: [G]
676
+ })], K);
677
+ var pe = ".nxignore", q = class ProjectsService {
678
678
  constructor() {}
679
679
  isUnknownArray(e) {
680
680
  return Array.isArray(e);
681
681
  }
682
682
  listProjectConfigurationFiles(e) {
683
683
  let t = [];
684
- for (let n of u(e.directoryPath, { withFileTypes: !0 })) {
685
- let r = d.join(e.directoryPath, n.name), i = d.relative(e.workspaceRoot, r).split(d.sep).join("/");
684
+ for (let n of i(e.directoryPath, { withFileTypes: !0 })) {
685
+ let r = a.join(e.directoryPath, n.name), i = a.relative(e.workspaceRoot, r).split(a.sep).join("/");
686
686
  n.isFile() && n.name === "project.json" ? t.push(i) : n.isDirectory() && !n.name.startsWith(".") && n.name !== "node_modules" && !e.ignoredPaths.includes(i) && t.push(...this.listProjectConfigurationFiles({
687
687
  directoryPath: r,
688
688
  ignoredPaths: e.ignoredPaths,
@@ -692,8 +692,8 @@ var me = ".nxignore", K = class ProjectsService {
692
692
  return t;
693
693
  }
694
694
  readIgnoredPaths(e) {
695
- let t = d.resolve(e, me);
696
- return s(t) ? l(t, "utf8").split("\n").map((e) => e.trim()).filter((e) => e !== "" && !e.startsWith("#")) : [];
695
+ let n = a.resolve(e, pe);
696
+ return t(n) ? r(n, "utf8").split("\n").map((e) => e.trim()).filter((e) => e !== "" && !e.startsWith("#")) : [];
697
697
  }
698
698
  listWorkspaceProjects(e) {
699
699
  return this.listProjectConfigurationFiles({
@@ -706,27 +706,27 @@ var me = ".nxignore", K = class ProjectsService {
706
706
  })).toSorted((e, t) => e.name.localeCompare(t.name));
707
707
  }
708
708
  readProjectScope(e) {
709
- let t = d.dirname(e.projectConfigurationFile), n = JSON.parse(l(d.resolve(e.workspaceRoot, e.projectConfigurationFile), "utf8")), r = typeof n == "object" && n ? { ...n } : {}, i = this.isUnknownArray(r.tags) ? r.tags : [], a = typeof r.name == "string" ? r.name : t;
709
+ let t = a.dirname(e.projectConfigurationFile), n = JSON.parse(r(a.resolve(e.workspaceRoot, e.projectConfigurationFile), "utf8")), i = typeof n == "object" && n ? { ...n } : {}, o = this.isUnknownArray(i.tags) ? i.tags : [], s = typeof i.name == "string" ? i.name : t;
710
710
  return {
711
- name: a,
711
+ name: s,
712
712
  root: t,
713
- tags: [...i.filter((e) => typeof e == "string"), `name:${a}`]
713
+ tags: [...o.filter((e) => typeof e == "string"), `name:${s}`]
714
714
  };
715
715
  }
716
716
  };
717
- K = __decorate([r(), __decorateMetadata("design:paramtypes", [])], K);
717
+ q = __decorate([l(), __decorateMetadata("design:paramtypes", [])], q);
718
718
  //#endregion
719
719
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.module.ts
720
- var q = class ProjectsModule {};
721
- q = __decorate([i({
720
+ var J = class ProjectsModule {};
721
+ J = __decorate([u({
722
722
  controllers: [],
723
- exports: [K],
723
+ exports: [q],
724
724
  imports: [],
725
- providers: [K]
726
- })], q);
725
+ providers: [q]
726
+ })], J);
727
727
  //#endregion
728
728
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.constants.ts
729
- var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__conformetryPluginContext", X, Z = X = class PluginService {
729
+ var me = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__conformetryPluginContext", X, Z = X = class PluginService {
730
730
  adapterService;
731
731
  instancesService;
732
732
  configurationService;
@@ -742,42 +742,42 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
742
742
  this.adapterService = e, this.instancesService = t, this.configurationService = n, this.generatorService = r, this.generationService = i, this.optionsService = a, this.pathsService = o, this.projectsService = s, this.reportingService = c, this.validationService = l, this.logger = u, this.logger.setContext(X.name);
743
743
  }
744
744
  async assertEmittedPluginCurrent(e) {
745
- let t = await this.generatorService.emitPlugin({
745
+ let n = await this.generatorService.emitPlugin({
746
746
  configurationPath: e.configurationPath,
747
- outputPath: j,
748
- packageName: M,
747
+ outputPath: N,
748
+ packageName: F,
749
749
  projects: this.projectsService.listWorkspaceProjects(e.workspaceRoot)
750
750
  });
751
- for (let n of t) {
752
- let t = d.resolve(e.workspaceRoot, n.filePath);
753
- if ((s(t) ? l(t, "utf8") : void 0) !== n.content) throw this.logger.warn("🚫 Rejected a stale conformetry generator plugin", void 0, { filePath: n.filePath }), Error(`${n.filePath} is out of date with ${e.configurationPath}. Run \`nx sync\` to regenerate the conformetry generator plugin.`);
751
+ for (let i of n) {
752
+ let n = a.resolve(e.workspaceRoot, i.filePath);
753
+ if ((t(n) ? r(n, "utf8") : void 0) !== i.content) throw this.logger.warn("🚫 Rejected a stale conformetry generator plugin", void 0, { filePath: i.filePath }), Error(`${i.filePath} is out of date with ${e.configurationPath}. Run \`nx sync\` to regenerate the conformetry generator plugin.`);
754
754
  }
755
755
  }
756
756
  async assertPluginInSync(e) {
757
757
  await this.assertTemplatesExist(e), await this.assertEmittedPluginCurrent(e);
758
758
  }
759
759
  async assertTemplatesExist(e) {
760
- let t = await this.configurationService.loadConformetryConfiguration(e.configurationPath);
761
- for (let n of t) {
762
- let t = d.resolve(e.workspaceRoot, n.templatePath);
763
- if (!s(t)) throw this.logger.warn("🚫 Rejected a generator with a missing template", void 0, {
764
- generator: n.name,
765
- templatePath: n.templatePath
766
- }), Error(`Generator ${n.name} names a template at ${n.templatePath}, which does not exist.`);
760
+ let n = await this.configurationService.loadConformetryConfiguration(e.configurationPath);
761
+ for (let r of n) {
762
+ let n = a.resolve(e.workspaceRoot, r.templatePath);
763
+ if (!t(n)) throw this.logger.warn("🚫 Rejected a generator with a missing template", void 0, {
764
+ generator: r.name,
765
+ templatePath: r.templatePath
766
+ }), Error(`Generator ${r.name} names a template at ${r.templatePath}, which does not exist.`);
767
767
  }
768
768
  }
769
769
  readNxConfiguration(e) {
770
- let t = d.resolve(e, V);
771
- if (s(t)) return JSON.parse(l(t, "utf8"));
770
+ let n = a.resolve(e, C);
771
+ if (t(n)) return JSON.parse(r(n, "utf8"));
772
772
  }
773
773
  resolveOptions(e) {
774
- let t = this.optionsService.resolveConfigurationPath({
775
- exists: (t) => s(d.resolve(e.workspaceRoot, t)),
774
+ let n = this.optionsService.resolveConfigurationPath({
775
+ exists: (n) => t(a.resolve(e.workspaceRoot, n)),
776
776
  nxConfiguration: this.readNxConfiguration(e.workspaceRoot)
777
- }), n = typeof e.options == "object" && e.options !== null ? { ...e.options } : {};
777
+ }), r = typeof e.options == "object" && e.options !== null ? { ...e.options } : {};
778
778
  return this.optionsService.resolvePluginOptions({
779
- configurationPath: t,
780
- ...n
779
+ configurationPath: n,
780
+ ...r
781
781
  });
782
782
  }
783
783
  async resolveTemplateInputs(e) {
@@ -787,7 +787,7 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
787
787
  async resolveTemplates(e) {
788
788
  return (await this.configurationService.loadConformetryConfiguration(e.configurationPath)).map((t) => this.configurationService.collectTemplate({
789
789
  name: t.name,
790
- templatePath: d.resolve(e.workspaceRoot, t.templatePath),
790
+ templatePath: a.resolve(e.workspaceRoot, t.templatePath),
791
791
  threshold: t.threshold
792
792
  }));
793
793
  }
@@ -796,7 +796,7 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
796
796
  options: e.options,
797
797
  workspaceRoot: e.workspaceRoot
798
798
  }), n = await this.resolveTemplateInputs({ configurationPath: t.configurationPath }), r = /* @__PURE__ */ new Map();
799
- for (let i of e.projectConfigurationFiles.filter((e) => d.basename(e) === he)) {
799
+ for (let i of e.projectConfigurationFiles.filter((e) => a.basename(e) === he)) {
800
800
  let a = this.projectsService.readProjectScope({
801
801
  projectConfigurationFile: i,
802
802
  workspaceRoot: e.workspaceRoot
@@ -807,11 +807,11 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
807
807
  workspaceRoot: e.workspaceRoot
808
808
  })).length !== 0 && r.set(a.root, { [t.validateTargetName]: {
809
809
  cache: !0,
810
- executor: `${z}:validate`,
810
+ executor: `${x}:validate`,
811
811
  inputs: [
812
812
  "default",
813
813
  `{workspaceRoot}/${t.configurationPath}`,
814
- `{workspaceRoot}/${j}/**/*`,
814
+ `{workspaceRoot}/${N}/**/*`,
815
815
  ...n
816
816
  ],
817
817
  options: {}
@@ -833,26 +833,26 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
833
833
  let i = this.adapterService.createAdapters({
834
834
  tree: e.tree,
835
835
  workspaceRoot: e.workspaceRoot
836
- }), a = this.optionsService.resolveGeneratorInputs(e.options), { generatedFilePaths: o } = await this.generationService.runGenerator({
836
+ }), o = this.optionsService.resolveGeneratorInputs(e.options), { generatedFilePaths: s } = await this.generationService.runGenerator({
837
837
  definition: {
838
838
  name: r.name,
839
- templateDirectoryPath: d.resolve(e.workspaceRoot, r.templatePath)
839
+ templateDirectoryPath: a.resolve(e.workspaceRoot, r.templatePath)
840
840
  },
841
841
  filesystem: i.filesystem,
842
842
  formatter: i.formatter,
843
- inputs: a,
843
+ inputs: o,
844
844
  instancePath: await this.pathsService.resolveGenerationPath({
845
845
  configurationPath: t.configurationPath,
846
846
  generatorName: e.generatorName,
847
- inputs: a,
847
+ inputs: o,
848
848
  tree: e.tree,
849
849
  workspaceRoot: e.workspaceRoot
850
850
  })
851
851
  });
852
852
  return this.logger.info("✨ Generated instance files", void 0, {
853
- count: o.length,
853
+ count: s.length,
854
854
  generator: e.generatorName
855
- }), o;
855
+ }), s;
856
856
  }
857
857
  async runValidation(e) {
858
858
  let t = this.resolveOptions({
@@ -886,64 +886,64 @@ var J = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__co
886
886
  };
887
887
  }
888
888
  };
889
- Z = X = __decorate([r(), __decorateMetadata("design:paramtypes", [
890
- F === void 0 ? Object : F,
891
- L === void 0 ? Object : L,
892
- m === void 0 ? Object : m,
893
- N === void 0 ? Object : N,
894
- g === void 0 ? Object : g,
895
- H === void 0 ? Object : H,
896
- W === void 0 ? Object : W,
897
- K === void 0 ? Object : K,
898
- v === void 0 ? Object : v,
899
- b === void 0 ? Object : b,
900
- w === void 0 ? Object : w
889
+ Z = X = __decorate([l(), __decorateMetadata("design:paramtypes", [
890
+ z === void 0 ? Object : z,
891
+ V === void 0 ? Object : V,
892
+ p === void 0 ? Object : p,
893
+ I === void 0 ? Object : I,
894
+ h === void 0 ? Object : h,
895
+ U === void 0 ? Object : U,
896
+ G === void 0 ? Object : G,
897
+ q === void 0 ? Object : q,
898
+ _ === void 0 ? Object : _,
899
+ y === void 0 ? Object : y,
900
+ O === void 0 ? Object : O
901
901
  ])], Z);
902
902
  //#endregion
903
903
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.module.ts
904
904
  var Q = class PluginModule {};
905
- Q = __decorate([i({
905
+ Q = __decorate([u({
906
906
  controllers: [],
907
907
  exports: [
908
- I,
909
- R,
910
- p,
911
- P,
912
- h,
913
- T,
914
- U,
915
- G,
908
+ B,
909
+ H,
910
+ f,
911
+ L,
912
+ m,
913
+ k,
914
+ W,
915
+ K,
916
916
  Z,
917
- q,
918
- _,
919
- D,
920
- y
917
+ J,
918
+ g,
919
+ j,
920
+ v
921
921
  ],
922
922
  imports: [
923
- I,
924
- R,
925
- p,
926
- P,
927
- h,
928
- T,
929
- U,
930
- G,
931
- q,
932
- _,
933
- D,
934
- y
923
+ B,
924
+ H,
925
+ f,
926
+ L,
927
+ m,
928
+ k,
929
+ W,
930
+ K,
931
+ J,
932
+ g,
933
+ j,
934
+ v
935
935
  ],
936
936
  providers: [Z]
937
937
  })], Q);
938
938
  //#endregion
939
- //#region projects/ic-suite/conformetry/conformetry-nx/src/main.module.ts
939
+ //#region projects/ic-suite/conformetry/conformetry-nx/src/conformetry-nx.module.ts
940
940
  var $ = class MainModule {};
941
- $ = __decorate([i({
941
+ $ = __decorate([u({
942
942
  controllers: [],
943
- exports: [P, Q],
943
+ exports: [L, Q],
944
944
  imports: [
945
- P,
946
- T,
945
+ L,
946
+ k,
947
947
  Q
948
948
  ],
949
949
  providers: []
@@ -951,23 +951,23 @@ $ = __decorate([i({
951
951
  //#endregion
952
952
  //#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin-context.utilities.ts
953
953
  async function resolveGeneratorService() {
954
- return (await resolvePluginContext()).get(N);
954
+ return (await resolvePluginContext()).get(I);
955
955
  }
956
956
  async function resolveOptionsService() {
957
- return (await resolvePluginContext()).get(H);
957
+ return (await resolvePluginContext()).get(U);
958
958
  }
959
959
  async function resolvePluginService() {
960
960
  return (await resolvePluginContext()).get(Z);
961
961
  }
962
962
  async function resolveProjectsService() {
963
- return (await resolvePluginContext()).get(K);
963
+ return (await resolvePluginContext()).get(q);
964
964
  }
965
965
  async function resolvePluginContext() {
966
- let t = globalThis;
967
- return t[Y] ??= e.createApplicationContext($, {
966
+ let e = globalThis;
967
+ return e[Y] ??= o.createApplicationContext($, {
968
968
  abortOnError: !1,
969
969
  logger: !1
970
- }), await t[Y];
970
+ }), await e[Y];
971
971
  }
972
972
  //#endregion
973
- export { M as _, $ as a, E as b, J as c, V as d, R as f, j as g, F as h, resolveProjectsService as i, U as l, I as m, resolveOptionsService as n, Q as o, L as p, resolvePluginService as r, Z as s, resolveGeneratorService as t, H as u, le as v, __name as x, D as y };
973
+ export { P as _, $ as a, C as b, me as c, H as d, V as f, F as g, N as h, resolveProjectsService as i, W as l, z as m, resolveOptionsService as n, Q as o, B as p, resolvePluginService as r, Z as s, resolveGeneratorService as t, U as u, j as v, __name as x, A as y };
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { n as e } from "../bootstrap.utilities-CYl9__Vf.js";
3
+ //#region projects/ic-suite/conformetry/conformetry-nx/src/conformetry-nx.main.ts
4
+ e(process.cwd());
5
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../../plugin-context.utilities-BHfGQv2V.js";
1
+ import { r as e } from "../../../plugin-context.utilities-nggdWdJp.js";
2
2
  //#region projects/ic-suite/conformetry/conformetry-nx/src/executors/validate/executor.ts
3
3
  async function validateExecutor(t, n) {
4
4
  let r = n.projectName;
@@ -1,20 +1,20 @@
1
- import { d as e, i as t, n, t as r, v as i } from "../../../plugin-context.utilities-BHfGQv2V.js";
1
+ import { _ as e, b as t, i as n, n as r, t as i } from "../../../plugin-context.utilities-nggdWdJp.js";
2
2
  //#region projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts
3
- async function syncGenerator(e, a) {
4
- let o = await r(), s = await n(), c = await t(), l = await o.emitPlugin({
3
+ async function syncGenerator(t, a) {
4
+ let o = await i(), s = await r(), c = await n(), l = await o.emitPlugin({
5
5
  configurationPath: a?.configurationPath ?? s.resolveConfigurationPath({
6
- exists: (t) => e.exists(t),
7
- nxConfiguration: readNxConfiguration(e)
6
+ exists: (e) => t.exists(e),
7
+ nxConfiguration: readNxConfiguration(t)
8
8
  }),
9
9
  outputPath: a?.outputPath ?? ".conformetry/nx-generators",
10
10
  packageName: a?.packageName ?? "conformetry",
11
- projects: c.listWorkspaceProjects(e.root)
11
+ projects: c.listWorkspaceProjects(t.root)
12
12
  });
13
- for (let t of l) e.write(t.filePath, t.content);
14
- return Object.assign(() => {}, { outOfSyncMessage: i });
13
+ for (let e of l) t.write(e.filePath, e.content);
14
+ return Object.assign(() => {}, { outOfSyncMessage: e });
15
15
  }
16
- function readNxConfiguration(t) {
17
- let n = t.read(e, "utf8");
16
+ function readNxConfiguration(e) {
17
+ let n = e.read(t, "utf8");
18
18
  if (n !== null) return JSON.parse(n);
19
19
  }
20
20
  //#endregion
package/dist/src/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as e, b as t, c as n, f as r, h as i, l as a, m as o, o as s, p as c, r as l, s as u, u as d, y as f } from "../plugin-context.utilities-BHfGQv2V.js";
2
- import { n as p, t as m } from "../bootstrap.utilities-BImMIPHz.js";
1
+ import { a as e, c as t, d as n, f as r, l as i, m as a, o, p as s, r as c, s as l, u, v as d, y as f } from "../plugin-context.utilities-nggdWdJp.js";
2
+ import { n as p, t as m } from "../bootstrap.utilities-CYl9__Vf.js";
3
3
  import h from "node:path";
4
4
  //#region projects/ic-suite/conformetry/conformetry-nx/src/index.ts
5
5
  var g = {
6
- createNodes: [n, async (e, t, n) => {
7
- let r = await (await l()).inferTargets({
6
+ createNodes: [t, async (e, t, n) => {
7
+ let r = await (await c()).inferTargets({
8
8
  options: t,
9
9
  projectConfigurationFiles: e,
10
10
  workspaceRoot: n.workspaceRoot
@@ -17,7 +17,7 @@ var g = {
17
17
  name: "@conformetry/nx"
18
18
  };
19
19
  async function runConformetryGenerator(e) {
20
- return await (await l()).runGenerator({
20
+ return await (await c()).runGenerator({
21
21
  generatorName: e.generatorName,
22
22
  options: e.options ?? {},
23
23
  tree: e.tree,
@@ -25,4 +25,4 @@ async function runConformetryGenerator(e) {
25
25
  });
26
26
  }
27
27
  //#endregion
28
- export { o as AdapterModule, i as AdapterService, r as InstancesModule, c as InstancesService, e as MainModule, a as OptionsModule, d as OptionsService, s as PluginModule, u as PluginService, f as ScopeModule, t as ScopeService, m as bootstrapPlugin, g as default, l as resolvePluginService, p as runBootstrapCli, runConformetryGenerator };
28
+ export { s as AdapterModule, a as AdapterService, n as InstancesModule, r as InstancesService, e as MainModule, i as OptionsModule, u as OptionsService, o as PluginModule, l as PluginService, d as ScopeModule, f as ScopeService, m as bootstrapPlugin, g as default, c as resolvePluginService, p as runBootstrapCli, runConformetryGenerator };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "author": "Jimmy Paolini",
3
3
  "bin": {
4
- "conformetry-nx-bootstrap-generators": "./dist/src/main.js"
4
+ "conformetry-nx-bootstrap-generators": "./dist/src/conformetry-nx.main.js"
5
5
  },
6
6
  "bugs": {
7
7
  "url": "https://github.com/organizzolini/codebase/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@conformetry/configuration": "0.0.25",
11
- "@conformetry/generation": "0.0.25",
12
- "@conformetry/output": "0.0.24",
13
- "@conformetry/validation": "0.0.24",
10
+ "@conformetry/configuration": "0.0.27",
11
+ "@conformetry/generation": "0.0.27",
12
+ "@conformetry/output": "0.0.26",
13
+ "@conformetry/validation": "0.0.26",
14
14
  "@nestjs/common": "^11.1.21 || ^12.0.1",
15
15
  "@nestjs/core": "^11.1.21 || ^12.0.1",
16
16
  "@nx/devkit": "^23.0.0",
@@ -84,5 +84,5 @@
84
84
  "strict": true
85
85
  },
86
86
  "types": "./dist/src/index.d.ts",
87
- "version": "0.0.25"
87
+ "version": "0.0.27"
88
88
  }
package/dist/src/main.js DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import { n as e } from "../bootstrap.utilities-BImMIPHz.js";
3
- //#region projects/ic-suite/conformetry/conformetry-nx/src/main.ts
4
- e(process.cwd());
5
- //#endregion