@conformetry/nx 0.0.19 โ†’ 0.0.21

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,18 @@
1
+ ## 0.0.21 (2026-10-15)
2
+
3
+ ### ๐Ÿงฑ Updated Dependencies
4
+
5
+ - Updated conformetry-configuration to 0.0.21
6
+ - Updated conformetry-generation to 0.0.21
7
+ - Updated conformetry-validation to 0.0.20
8
+ - Updated conformetry-output to 0.0.20
9
+
10
+ ## 0.0.20 (2026-10-14)
11
+
12
+ ### ๐Ÿฉน Fixes
13
+
14
+ - **conformetry:** ๐Ÿ› let the sync generator run under nx g ([#1560](https://github.com/organizzolini/codebase/pull/1560))
15
+
1
16
  ## 0.0.19 (2026-10-13)
2
17
 
3
18
  ### ๐Ÿงฑ Updated Dependencies
package/README.md CHANGED
@@ -70,6 +70,10 @@ one.
70
70
  `nx g @conformetry/nx:anything` resolves nothing by design โ€” which generators
71
71
  exist is a property of your configuration, not of this package.
72
72
 
73
+ `sync` runs both ways: `nx sync` and `nx sync:check` use it as the global sync
74
+ generator, and `nx g @conformetry/nx:sync` runs it directly, writing the
75
+ emitted plugin.
76
+
73
77
  ## Generating
74
78
 
75
79
  ```bash
@@ -148,9 +152,9 @@ Call stacks traced through `projects/ic-suite/conformetry/conformetry-nx`, deepe
148
152
 
149
153
  | Measure | Value |
150
154
  | --- | --- |
151
- | Callables | 114 |
155
+ | Callables | 115 |
152
156
  | Files | 47 |
153
- | Calls traced | 138 |
157
+ | Calls traced | 139 |
154
158
  | Call stacks | 8 |
155
159
  | Deepest stack | 15 |
156
160
  | Stacks through recursion | 0 |
@@ -284,7 +288,7 @@ What this project is judged against, as declared in its own `callidescope.config
284
288
  **5. `syncGenerator`** โ€” depth โ‰ฅ 11 ยท orphan-root
285
289
 
286
290
  ```text
287
- ๐Ÿš€ syncGenerator(โ€ฆ): Promise<{ outOfSyncMessage: string; }> [projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts:26]
291
+ ๐Ÿš€ syncGenerator(tree: Tree, options?: SyncGeneratorOptions): Promise<SyncGeneratorResult> [projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts:29]
288
292
  โ†ณ Regenerates the workspace's conformetry generator plugin.
289
293
  โ””โ”€> GeneratorService.emitPlugin(args: EmitPluginArguments): Promise<EmittedFile[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.service.ts:212]
290
294
  โ†ณ Returns every file the consumer's generator plugin consists of.
@@ -341,7 +345,7 @@ What this project is judged against, as declared in its own `callidescope.config
341
345
  | --- | --- | --- | --- |
342
346
  | `PluginService.runGenerator` | 9 | `PluginService.resolveOptions`, `PluginService.assertPluginInSync`, `ConfigurationService.loadConformetryConfiguration`, `PluginService.find(โ€ฆ)`, `PluginService.map(โ€ฆ)`, `AdapterService.createAdapters`, `OptionsService.resolveGeneratorInputs`, `GenerationService.runGenerator`, `PathsService.resolveGenerationPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:330` |
343
347
  | `bootstrapPlugin` | 9 | `resolveGeneratorService`, `resolveOptionsService`, `resolveProjectsService`, `GeneratorService.emitPlugin`, `OptionsService.resolveConfigurationPath`, `readNxConfiguration`, `ProjectsService.listWorkspaceProjects`, `writePlugin`, `linkPlugin` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/bootstrap.utilities.ts:39` |
344
- | `syncGenerator` | 7 | `resolveGeneratorService`, `resolveOptionsService`, `resolveProjectsService`, `GeneratorService.emitPlugin`, `OptionsService.resolveConfigurationPath`, `readNxConfiguration`, `ProjectsService.listWorkspaceProjects` | `projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts:26` |
348
+ | `syncGenerator` | 8 | `resolveGeneratorService`, `resolveOptionsService`, `resolveProjectsService`, `GeneratorService.emitPlugin`, `OptionsService.resolveConfigurationPath`, `readNxConfiguration`, `ProjectsService.listWorkspaceProjects`, `assign(โ€ฆ)` | `projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts:29` |
345
349
 
346
350
  <details>
347
351
  <summary>55 more callables</summary>
@@ -717,14 +721,14 @@ graph LR
717
721
 
718
722
  ### Project
719
723
 
720
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-6143-22c55e?style=flat-square)
721
- ![Repository Size](https://img.shields.io/badge/Repository_Size-218.05_kB-6b7280?style=flat-square)
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-219.17_kB-6b7280?style=flat-square)
722
726
  ![Folders](https://img.shields.io/badge/Folders-15-4a4a4a?style=flat-square)
723
727
  ![Source Files](https://img.shields.io/badge/Source_Files-65-3178c6?style=flat-square)
724
728
 
725
729
  ### Measured Targets
726
730
 
727
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-10.81_kB_gzip-6b7280?style=flat-square)
731
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-10.83_kB_gzip-6b7280?style=flat-square)
728
732
 
729
733
  ### TypeScript
730
734
 
@@ -733,7 +737,7 @@ graph LR
733
737
  ![Generic Declarations](https://img.shields.io/badge/Generic_Declarations-0-0369a1?style=flat-square)
734
738
  ![Enums](https://img.shields.io/badge/Enums-0-f97316?style=flat-square)
735
739
  ![Decorators](https://img.shields.io/badge/Decorators-17-db2777?style=flat-square)
736
- ![Doc Comments](https://img.shields.io/badge/Doc_Comments-147-6366f1?style=flat-square)
740
+ ![Doc Comments](https://img.shields.io/badge/Doc_Comments-148-6366f1?style=flat-square)
737
741
  ![Static Methods](https://img.shields.io/badge/Static_Methods-0-166534?style=flat-square)
738
742
 
739
743
  ### JavaScript
@@ -742,15 +746,15 @@ graph LR
742
746
  ![Test Files](https://img.shields.io/badge/Test_Files-15-10b981?style=flat-square)
743
747
  ![External Packages](https://img.shields.io/badge/External_Packages-18-8b5cf6?style=flat-square)
744
748
  ![Classes](https://img.shields.io/badge/Classes-17-7c3aed?style=flat-square)
745
- ![Functions](https://img.shields.io/badge/Functions-276-16a34a?style=flat-square)
749
+ ![Functions](https://img.shields.io/badge/Functions-279-16a34a?style=flat-square)
746
750
  ![Methods](https://img.shields.io/badge/Methods-86-15803d?style=flat-square)
747
- ![Sync Functions](https://img.shields.io/badge/Sync_Functions-222-4ade80?style=flat-square)
748
- ![Async Functions](https://img.shields.io/badge/Async_Functions-140-059669?style=flat-square)
749
- ![Constants](https://img.shields.io/badge/Constants-279-dc2626?style=flat-square)
751
+ ![Sync Functions](https://img.shields.io/badge/Sync_Functions-224-4ade80?style=flat-square)
752
+ ![Async Functions](https://img.shields.io/badge/Async_Functions-141-059669?style=flat-square)
753
+ ![Constants](https://img.shields.io/badge/Constants-280-dc2626?style=flat-square)
750
754
  ![Imports](https://img.shields.io/badge/Imports-266-0284c7?style=flat-square)
751
- ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-76-ea580c?style=flat-square)
752
- ![Comments](https://img.shields.io/badge/Comments-339-64748b?style=flat-square)
753
- ![Comment Lines](https://img.shields.io/badge/Comment_Lines-734-475569?style=flat-square)
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)
754
758
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-0-ca8a04?style=flat-square)
755
759
 
756
760
  ### Python
@@ -906,20 +910,20 @@ graph LR
906
910
  ### Markdown
907
911
 
908
912
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
909
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-377-1f6feb?style=flat-square)
913
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-392-1f6feb?style=flat-square)
910
914
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
911
- ![H2](https://img.shields.io/badge/H2-22-8b5cf6?style=flat-square)
912
- ![H3](https://img.shields.io/badge/H3-32-a78bfa?style=flat-square)
915
+ ![H2](https://img.shields.io/badge/H2-24-8b5cf6?style=flat-square)
916
+ ![H3](https://img.shields.io/badge/H3-34-a78bfa?style=flat-square)
913
917
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
914
918
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
915
919
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
916
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-111-64748b?style=flat-square)
917
- ![Lists](https://img.shields.io/badge/Lists-26-16a34a?style=flat-square)
918
- ![List Items](https://img.shields.io/badge/List_Items-91-22c55e?style=flat-square)
920
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-116-64748b?style=flat-square)
921
+ ![Lists](https://img.shields.io/badge/Lists-28-16a34a?style=flat-square)
922
+ ![List Items](https://img.shields.io/badge/List_Items-96-22c55e?style=flat-square)
919
923
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
920
924
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
921
925
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
922
- ![Links](https://img.shields.io/badge/Links-16-059669?style=flat-square)
926
+ ![Links](https://img.shields.io/badge/Links-17-059669?style=flat-square)
923
927
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
924
928
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-11-dc2626?style=flat-square)
925
929
  ![Inline Code](https://img.shields.io/badge/Inline_Code-73-ef4444?style=flat-square)
@@ -8,9 +8,7 @@ import { Tree } from '@nx/devkit';
8
8
  * fixes it. Writing through the tree rather than to disk is what makes the
9
9
  * check possible: Nx compares the tree against the working copy.
10
10
  */
11
- declare function syncGenerator(tree: Tree, options?: SyncGeneratorOptions): Promise<{
12
- outOfSyncMessage: string;
13
- }>;
11
+ declare function syncGenerator(tree: Tree, options?: SyncGeneratorOptions): Promise<SyncGeneratorResult>;
14
12
  export default syncGenerator;
15
13
 
16
14
  /** Options accepted by the conformetry sync generator. */
@@ -23,4 +21,14 @@ declare interface SyncGeneratorOptions {
23
21
  readonly packageName?: string;
24
22
  }
25
23
 
24
+ /**
25
+ * What the sync generator returns.
26
+ *
27
+ * Nx's sync runner reads `outOfSyncMessage`, while `nx g` invokes a generator's
28
+ * return value as a callback, so the result is a no-op function carrying it.
29
+ */
30
+ declare type SyncGeneratorResult = (() => void) & {
31
+ readonly outOfSyncMessage: string;
32
+ };
33
+
26
34
  export { }
@@ -11,7 +11,7 @@ async function syncGenerator(e, a) {
11
11
  projects: c.listWorkspaceProjects(e.root)
12
12
  });
13
13
  for (let t of l) e.write(t.filePath, t.content);
14
- return { outOfSyncMessage: i };
14
+ return Object.assign(() => {}, { outOfSyncMessage: i });
15
15
  }
16
16
  function readNxConfiguration(t) {
17
17
  let n = t.read(e, "utf8");
@@ -977,9 +977,9 @@ export declare function runBootstrapCli(workspaceRoot: string): Promise<void>;
977
977
  * Runs one configured generator against an Nx tree.
978
978
  *
979
979
  * This is the machinery a consumer's generated generator wrappers call. The
980
- * published package deliberately declares no generators of its own: which
981
- * generators exist is a property of the consumer's configuration, not of this
982
- * package, so `nx g @conformetry/nx:anything` resolves nothing by
980
+ * published package declares no scaffolding generators of its own, only
981
+ * `sync`: which generators exist is a property of the consumer's
982
+ * configuration, so `nx g @conformetry/nx:<anything else>` resolves nothing by
983
983
  * design.
984
984
  */
985
985
  export declare function runConformetryGenerator(args: {
package/package.json CHANGED
@@ -7,10 +7,10 @@
7
7
  "url": "https://github.com/organizzolini/codebase/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@conformetry/configuration": "0.0.20",
11
- "@conformetry/generation": "0.0.20",
12
- "@conformetry/output": "0.0.19",
13
- "@conformetry/validation": "0.0.19",
10
+ "@conformetry/configuration": "0.0.21",
11
+ "@conformetry/generation": "0.0.21",
12
+ "@conformetry/output": "0.0.20",
13
+ "@conformetry/validation": "0.0.20",
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.19"
87
+ "version": "0.0.21"
88
88
  }