@conformetry/generation 0.0.38 โ†’ 0.0.39

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,14 @@
1
+ ## 0.0.39 (2026-10-18)
2
+
3
+ ### ๐Ÿ’… Refactors
4
+
5
+ - **conformetry:** โ™ป๏ธ move the hook and filesystem types to the core package ([#1692](https://github.com/organizzolini/codebase/pull/1692), [#1673](https://github.com/organizzolini/codebase/issues/1673))
6
+
7
+ ### ๐Ÿงฑ Updated Dependencies
8
+
9
+ - Updated conformetry-configuration to 0.0.39
10
+ - Updated conformetry-core to 0.0.38
11
+
1
12
  ## 0.0.38 (2026-10-18)
2
13
 
3
14
  ### ๐Ÿงฑ Updated Dependencies
package/README.md CHANGED
@@ -122,25 +122,25 @@ What this project is judged against, as declared in its own `callidescope.config
122
122
  **1. `GenerationService.listDirectory`** โ€” depth 2 ยท orphan-root
123
123
 
124
124
  ```text
125
- ๐Ÿš€ GenerationService.listDirectory(directoryPath: string): Promise<DirectoryEntry[]> [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:38]
126
- โ””โ”€> GenerationService.map(โ€ฆ)(entry: Dirent<string>): { isDirectory: boolean; name: string; } [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:41]
125
+ ๐Ÿš€ GenerationService.listDirectory(directoryPath: string): Promise<DirectoryEntry[]> [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:40]
126
+ โ””โ”€> GenerationService.map(โ€ฆ)(entry: Dirent<string>): { isDirectory: boolean; name: string; } [projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:43]
127
127
  ```
128
128
 
129
129
  ### Breadth
130
130
 
131
131
  | Callable | Breadth | Calls directly | Location |
132
132
  | --- | --- | --- | --- |
133
- | `GenerationService.runGenerator` | 4 | `GenerationService.resolveAdapters`, `GenerationService.normalizeInputs`, `GenerationService.buildSubstitutions`, `GenerationService.renderDirectory` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:190` |
134
- | `GenerationService.renderDirectory` | 2 | `ConfigurationService.renderPath`, `GenerationService.renderFile` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:104` |
135
- | `GenerationService.listDirectory` | 1 | `GenerationService.map(โ€ฆ)` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:38` |
133
+ | `GenerationService.runGenerator` | 4 | `GenerationService.resolveAdapters`, `GenerationService.normalizeInputs`, `GenerationService.buildSubstitutions`, `GenerationService.renderDirectory` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:192` |
134
+ | `GenerationService.renderDirectory` | 2 | `ConfigurationService.renderPath`, `GenerationService.renderFile` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:106` |
135
+ | `GenerationService.listDirectory` | 1 | `GenerationService.map(โ€ฆ)` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:40` |
136
136
 
137
137
  <details>
138
138
  <summary>2 more callables</summary>
139
139
 
140
140
  | Callable | Breadth | Calls directly | Location |
141
141
  | --- | --- | --- | --- |
142
- | `GenerationService.buildSubstitutions` | 1 | `ConfigurationService.buildNameSubstitutions` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:74` |
143
- | `GenerationService.renderFile` | 1 | `ConfigurationService.renderContent` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:153` |
142
+ | `GenerationService.buildSubstitutions` | 1 | `ConfigurationService.buildNameSubstitutions` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:76` |
143
+ | `GenerationService.renderFile` | 1 | `ConfigurationService.renderContent` | `projects/ic-suite/conformetry/conformetry-generation/src/modules/generation/generation.service.ts:155` |
144
144
 
145
145
  </details>
146
146
  <!-- callidescope:end -->
@@ -156,12 +156,14 @@ Dependency graphs exported by [codependix](https://github.com/Organizzolini/code
156
156
  graph LR
157
157
  conformetry_cli["conformetry-cli"]
158
158
  conformetry_configuration["conformetry-configuration"]
159
+ conformetry_core["conformetry-core"]
159
160
  conformetry_examples["conformetry-examples"]
160
161
  conformetry_generation["conformetry-generation"]
161
162
  conformetry_nx["conformetry-nx"]
162
163
  conformetry_cli --> conformetry_generation
163
164
  conformetry_examples --> conformetry_generation
164
165
  conformetry_generation --> conformetry_configuration
166
+ conformetry_generation --> conformetry_core
165
167
  conformetry_nx --> conformetry_generation
166
168
  classDef subject fill:#7c3aed,color:#fff,stroke:#4c1d95,stroke-width:2px
167
169
  class conformetry_generation subject
@@ -227,8 +229,8 @@ graph LR
227
229
 
228
230
  ### Project
229
231
 
230
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-802-22c55e?style=flat-square)
231
- ![Repository Size](https://img.shields.io/badge/Repository_Size-39.61_kB-6b7280?style=flat-square)
232
+ ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-748-22c55e?style=flat-square)
233
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-38.83_kB-6b7280?style=flat-square)
232
234
  ![Folders](https://img.shields.io/badge/Folders-4-4a4a4a?style=flat-square)
233
235
  ![Source Files](https://img.shields.io/badge/Source_Files-15-3178c6?style=flat-square)
234
236
 
@@ -239,28 +241,28 @@ graph LR
239
241
  ### TypeScript
240
242
 
241
243
  ![TypeScript Files](https://img.shields.io/badge/TypeScript_Files-15-3178c6?style=flat-square)
242
- ![Interfaces](https://img.shields.io/badge/Interfaces-8-0ea5e9?style=flat-square)
244
+ ![Interfaces](https://img.shields.io/badge/Interfaces-3-0ea5e9?style=flat-square)
243
245
  ![Generic Declarations](https://img.shields.io/badge/Generic_Declarations-0-0369a1?style=flat-square)
244
246
  ![Enums](https://img.shields.io/badge/Enums-0-f97316?style=flat-square)
245
247
  ![Decorators](https://img.shields.io/badge/Decorators-2-db2777?style=flat-square)
246
- ![Doc Comments](https://img.shields.io/badge/Doc_Comments-23-6366f1?style=flat-square)
248
+ ![Doc Comments](https://img.shields.io/badge/Doc_Comments-17-6366f1?style=flat-square)
247
249
  ![Static Methods](https://img.shields.io/badge/Static_Methods-0-166534?style=flat-square)
248
250
 
249
251
  ### JavaScript
250
252
 
251
253
  ![JavaScript Files](https://img.shields.io/badge/JavaScript_Files-0-f7df1e?style=flat-square)
252
254
  ![Test Files](https://img.shields.io/badge/Test_Files-2-10b981?style=flat-square)
253
- ![External Packages](https://img.shields.io/badge/External_Packages-9-8b5cf6?style=flat-square)
255
+ ![External Packages](https://img.shields.io/badge/External_Packages-10-8b5cf6?style=flat-square)
254
256
  ![Classes](https://img.shields.io/badge/Classes-4-7c3aed?style=flat-square)
255
257
  ![Functions](https://img.shields.io/badge/Functions-22-16a34a?style=flat-square)
256
258
  ![Methods](https://img.shields.io/badge/Methods-19-15803d?style=flat-square)
257
259
  ![Sync Functions](https://img.shields.io/badge/Sync_Functions-22-4ade80?style=flat-square)
258
260
  ![Async Functions](https://img.shields.io/badge/Async_Functions-19-059669?style=flat-square)
259
261
  ![Constants](https://img.shields.io/badge/Constants-33-dc2626?style=flat-square)
260
- ![Imports](https://img.shields.io/badge/Imports-32-0284c7?style=flat-square)
261
- ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-13-ea580c?style=flat-square)
262
- ![Comments](https://img.shields.io/badge/Comments-39-64748b?style=flat-square)
263
- ![Comment Lines](https://img.shields.io/badge/Comment_Lines-109-475569?style=flat-square)
262
+ ![Imports](https://img.shields.io/badge/Imports-35-0284c7?style=flat-square)
263
+ ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-7-ea580c?style=flat-square)
264
+ ![Comments](https://img.shields.io/badge/Comments-33-64748b?style=flat-square)
265
+ ![Comment Lines](https://img.shields.io/badge/Comment_Lines-93-475569?style=flat-square)
264
266
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-0-ca8a04?style=flat-square)
265
267
 
266
268
  ### Python
@@ -281,16 +283,16 @@ graph LR
281
283
  ### JSON
282
284
 
283
285
  ![JSON Files](https://img.shields.io/badge/JSON_Files-4-a16207?style=flat-square)
284
- ![JSON Lines](https://img.shields.io/badge/JSON_Lines-163-ca8a04?style=flat-square)
286
+ ![JSON Lines](https://img.shields.io/badge/JSON_Lines-164-ca8a04?style=flat-square)
285
287
  ![JSON Objects](https://img.shields.io/badge/JSON_Objects-38-7c3aed?style=flat-square)
286
288
  ![JSON Arrays](https://img.shields.io/badge/JSON_Arrays-13-8b5cf6?style=flat-square)
287
- ![JSON Properties](https://img.shields.io/badge/JSON_Properties-100-0284c7?style=flat-square)
288
- ![JSON Strings](https://img.shields.io/badge/JSON_Strings-88-16a34a?style=flat-square)
289
+ ![JSON Properties](https://img.shields.io/badge/JSON_Properties-101-0284c7?style=flat-square)
290
+ ![JSON Strings](https://img.shields.io/badge/JSON_Strings-89-16a34a?style=flat-square)
289
291
  ![JSON Numbers](https://img.shields.io/badge/JSON_Numbers-1-059669?style=flat-square)
290
292
  ![JSON Booleans](https://img.shields.io/badge/JSON_Booleans-7-0ea5e9?style=flat-square)
291
293
  ![JSON Nulls](https://img.shields.io/badge/JSON_Nulls-0-64748b?style=flat-square)
292
294
  ![JSON Items](https://img.shields.io/badge/JSON_Items-43-475569?style=flat-square)
293
- ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-147-dc2626?style=flat-square)
295
+ ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-148-dc2626?style=flat-square)
294
296
  ![JSON Max Depth](https://img.shields.io/badge/JSON_Max_Depth-5-ea580c?style=flat-square)
295
297
 
296
298
  ### YAML
@@ -416,20 +418,20 @@ graph LR
416
418
  ### Markdown
417
419
 
418
420
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
419
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-441-1f6feb?style=flat-square)
421
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-452-1f6feb?style=flat-square)
420
422
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
421
- ![H2](https://img.shields.io/badge/H2-41-8b5cf6?style=flat-square)
422
- ![H3](https://img.shields.io/badge/H3-50-a78bfa?style=flat-square)
423
+ ![H2](https://img.shields.io/badge/H2-42-8b5cf6?style=flat-square)
424
+ ![H3](https://img.shields.io/badge/H3-52-a78bfa?style=flat-square)
423
425
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
424
426
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
425
427
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
426
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-83-64748b?style=flat-square)
427
- ![Lists](https://img.shields.io/badge/Lists-44-16a34a?style=flat-square)
428
- ![List Items](https://img.shields.io/badge/List_Items-63-22c55e?style=flat-square)
428
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-86-64748b?style=flat-square)
429
+ ![Lists](https://img.shields.io/badge/Lists-46-16a34a?style=flat-square)
430
+ ![List Items](https://img.shields.io/badge/List_Items-66-22c55e?style=flat-square)
429
431
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
430
432
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
431
433
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
432
- ![Links](https://img.shields.io/badge/Links-13-059669?style=flat-square)
434
+ ![Links](https://img.shields.io/badge/Links-15-059669?style=flat-square)
433
435
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
434
436
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-11-dc2626?style=flat-square)
435
437
  ![Inline Code](https://img.shields.io/badge/Inline_Code-72-ef4444?style=flat-square)
@@ -1,26 +1,11 @@
1
1
  import { ConfigurationService } from '@conformetry/configuration';
2
+ import { DirectoryEntry } from '@conformetry/core';
3
+ import { FileSystemAdapter } from '@conformetry/core';
4
+ import { GeneratorDefinition } from '@conformetry/core';
2
5
 
3
- /**
4
- * A directory entry read from the source template tree.
5
- */
6
- export declare interface DirectoryEntry {
7
- isDirectory: boolean;
8
- name: string;
9
- }
6
+ export { DirectoryEntry }
10
7
 
11
- /**
12
- * Filesystem operations used by the runtime.
13
- *
14
- * Exists so a host with a virtual filesystem โ€” an Nx generator `Tree`, for
15
- * instance โ€” can run generation without touching disk. The default
16
- * implementation reads and writes directly.
17
- */
18
- export declare interface FileSystemAdapter {
19
- listDirectory(directoryPath: string): Promise<DirectoryEntry[]>;
20
- makeDirectory(directoryPath: string): Promise<void>;
21
- readFile(filePath: string): Promise<string>;
22
- writeFile(filePath: string, content: string): Promise<void>;
23
- }
8
+ export { FileSystemAdapter }
24
9
 
25
10
  /**
26
11
  * Formatting applied once generation completes.
@@ -78,39 +63,7 @@ export declare class GenerationService {
78
63
  runGenerator(args: RunGeneratorArguments): Promise<RunGeneratorResult>;
79
64
  }
80
65
 
81
- /**
82
- * Generator metadata and runtime configuration.
83
- */
84
- export declare interface GeneratorDefinition {
85
- description?: string;
86
- hooks?: GeneratorHooks;
87
- name: string;
88
- templateDirectoryPath: string;
89
- }
90
-
91
- /**
92
- * A generator hook function.
93
- */
94
- declare type GeneratorHook = (context: GeneratorHookContext) => Promise<void> | void;
95
-
96
- /**
97
- * Data exposed to generator hooks.
98
- */
99
- declare interface GeneratorHookContext {
100
- definition: GeneratorDefinition;
101
- generatedFilePaths: string[];
102
- input: Record<string, string>;
103
- outputDirectoryPath: string;
104
- substitutions: Record<string, string>;
105
- }
106
-
107
- /**
108
- * Generator lifecycle hooks.
109
- */
110
- declare interface GeneratorHooks {
111
- postGenerate?: GeneratorHook;
112
- preGenerate?: GeneratorHook;
113
- }
66
+ export { GeneratorDefinition }
114
67
 
115
68
  /**
116
69
  * Arguments accepted by the runtime runner.
package/package.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "url": "https://github.com/organizzolini/codebase/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@conformetry/configuration": "0.0.38",
7
+ "@conformetry/configuration": "0.0.39",
8
+ "@conformetry/core": "0.0.38",
8
9
  "@nestjs/common": "^11.1.21 || ^12.0.1",
9
10
  "reflect-metadata": "^0.2.2"
10
11
  },
@@ -58,5 +59,5 @@
58
59
  "strict": true
59
60
  },
60
61
  "types": "./dist/src/index.d.ts",
61
- "version": "0.0.38"
62
+ "version": "0.0.39"
62
63
  }