@conformetry/nx 0.0.31 → 0.0.33
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 +15 -0
- package/README.md +47 -42
- package/dist/{bootstrap.utilities-SrW64gG2.js → bootstrap.utilities-BmaK-AfQ.js} +1 -1
- package/dist/{plugin-context.utilities-BKyER2ln.js → plugin-context.utilities-fOm9HZq-.js} +33 -3
- package/dist/src/conformetry-nx.main.js +1 -1
- package/dist/src/executors/validate/executor.js +1 -1
- package/dist/src/generators/sync/generator.js +1 -1
- package/dist/src/index.d.ts +14 -3
- package/dist/src/index.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 0.0.33 (2026-10-16)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated conformetry-configuration to 0.0.32
|
|
6
|
+
- Updated conformetry-generation to 0.0.32
|
|
7
|
+
- Updated conformetry-validation to 0.0.31
|
|
8
|
+
- Updated conformetry-output to 0.0.31
|
|
9
|
+
|
|
10
|
+
## 0.0.32 (2026-10-16)
|
|
11
|
+
|
|
12
|
+
### 🔥 Performance
|
|
13
|
+
|
|
14
|
+
- **configuration,conformetry,scripts:** ⚡️ raise local pre-commit parallelism and overlap conformetry ([#1663](https://github.com/organizzolini/codebase/pull/1663))
|
|
15
|
+
|
|
1
16
|
## 0.0.31 (2026-10-16)
|
|
2
17
|
|
|
3
18
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -159,9 +159,9 @@ Call stacks traced through `projects/ic-suite/conformetry/conformetry-nx`, deepe
|
|
|
159
159
|
|
|
160
160
|
| Measure | Value |
|
|
161
161
|
| --- | --- |
|
|
162
|
-
| Callables |
|
|
163
|
-
| Files |
|
|
164
|
-
| Calls traced |
|
|
162
|
+
| Callables | 112 |
|
|
163
|
+
| Files | 48 |
|
|
164
|
+
| Calls traced | 141 |
|
|
165
165
|
| Call stacks | 8 |
|
|
166
166
|
| Deepest stack | 15 |
|
|
167
167
|
| Stacks through recursion | 0 |
|
|
@@ -183,7 +183,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
183
183
|
```text
|
|
184
184
|
🚀 validateExecutor(…): Promise<{ success: boolean; }> [projects/ic-suite/conformetry/conformetry-nx/src/executors/validate/executor.ts:16]
|
|
185
185
|
↳ Validates one project's instances against their conformetry templates.
|
|
186
|
-
└─> PluginService.runValidation(args: RunValidationArguments): Promise<RunValidationResult> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
186
|
+
└─> PluginService.runValidation(args: RunValidationArguments): Promise<RunValidationResult> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:409]
|
|
187
187
|
↳ Validates one project's instances and renders the report.
|
|
188
188
|
└─> ValidationService.validate(args: RunValidationArguments): RunValidationResult [projects/ic-suite/conformetry/conformetry-validation/src/modules/validation/validation.service.ts:194]
|
|
189
189
|
↳ Validates every instance and returns the differences found.
|
|
@@ -215,11 +215,11 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
215
215
|
```text
|
|
216
216
|
🚀 runConformetryGenerator(…): Promise<string[]> [projects/ic-suite/conformetry/conformetry-nx/src/index.ts:93]
|
|
217
217
|
↳ Runs one configured generator against an Nx tree.
|
|
218
|
-
└─> PluginService.runGenerator(args: RunGeneratorArguments): Promise<string[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
218
|
+
└─> PluginService.runGenerator(args: RunGeneratorArguments): Promise<string[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:348]
|
|
219
219
|
↳ Runs one configured generator against an Nx tree.
|
|
220
|
-
└─> PluginService.assertPluginInSync(args: { configurationPath: string; workspaceRoot: string; }): Promise<void> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
220
|
+
└─> PluginService.assertPluginInSync(args: { configurationPath: string; workspaceRoot: string; }): Promise<void> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:121]
|
|
221
221
|
↳ Fails fast when the plugin would run against a stale or broken setup.
|
|
222
|
-
└─> PluginService.assertEmittedPluginCurrent(args: { configurationPath: string; workspaceRoot: string; }): Promise<void> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
222
|
+
└─> PluginService.assertEmittedPluginCurrent(args: { configurationPath: string; workspaceRoot: string; }): Promise<void> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:87]
|
|
223
223
|
↳ Fails when the emitted Nx plugin no longer matches the configuration. `generators.json` and its schemas are derived…
|
|
224
224
|
└─> GeneratorService.emitPlugin(args: EmitPluginArguments): Promise<EmittedFile[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.service.ts:212]
|
|
225
225
|
↳ Returns every file the consumer's generator plugin consists of.
|
|
@@ -273,7 +273,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
273
273
|
|
|
274
274
|
```text
|
|
275
275
|
🚀 anonymous(…): Promise<CreateNodesResultArray> [projects/ic-suite/conformetry/conformetry-nx/src/index.ts:49]
|
|
276
|
-
└─> PluginService.inferTargets(args: InferTargetsArguments): Promise<Map<string, InferredTargets>> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
276
|
+
└─> PluginService.inferTargets(args: InferTargetsArguments): Promise<Map<string, InferredTargets>> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:283]
|
|
277
277
|
↳ Infers a validation target onto every project that holds at least one instance.
|
|
278
278
|
└─> InstancesService.findProjectInstances(args: FindProjectInstancesArguments): Promise<Instance[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:68]
|
|
279
279
|
↳ Expands every instance group that applies to a project, keeping only the instances that live inside it.
|
|
@@ -350,7 +350,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
350
350
|
|
|
351
351
|
| Callable | Breadth | Calls directly | Location |
|
|
352
352
|
| --- | --- | --- | --- |
|
|
353
|
-
| `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:
|
|
353
|
+
| `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:348` |
|
|
354
354
|
| `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` |
|
|
355
355
|
| `syncGenerator` | 8 | `resolveGeneratorService`, `resolveOptionsService`, `resolveProjectsService`, `GeneratorService.emitPlugin`, `OptionsService.resolveConfigurationPath`, `readNxConfiguration`, `ProjectsService.listWorkspaceProjects`, `assign(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts:32` |
|
|
356
356
|
|
|
@@ -361,17 +361,17 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
361
361
|
| --- | --- | --- | --- |
|
|
362
362
|
| `GeneratorService.emitPlugin` | 6 | `ConfigurationService.loadConformetryConfiguration`, `GeneratorService.toSorted(…)`, `GeneratorService.buildGeneratorsManifest`, `GeneratorService.map(…)`, `GeneratorService.map(…)`, `GeneratorService.stringify` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.service.ts:212` |
|
|
363
363
|
| `InstancesService.findProjectInstances` | 6 | `ConfigurationService.loadConformetryConfiguration`, `InstancesService.filter(…)`, `InstancesService.flatMap(…)`, `InstancesService.flatMap(…)`, `InstancesService.flatMap(…)`, `InstancesService.filter(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:68` |
|
|
364
|
-
| `PluginService.runValidation` | 6 | `PluginService.resolveOptions`, `PluginService.assertPluginInSync`, `ValidationService.validate`, `InstancesService.findProjectInstances`, `PluginService.resolveTemplates`, `ReportingService.formatReport` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
364
|
+
| `PluginService.runValidation` | 6 | `PluginService.resolveOptions`, `PluginService.assertPluginInSync`, `ValidationService.validate`, `InstancesService.findProjectInstances`, `PluginService.resolveTemplates`, `ReportingService.formatReport` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:409` |
|
|
365
365
|
| `PathsService.resolveGenerationPath` | 5 | `PathsService.resolveNewProjectPath`, `InstancesService.findProjectInstances`, `PathsService.requireModulePath`, `PathsService.resolveScopedDirectory`, `PathsService.resolveModuleParentPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:221` |
|
|
366
|
-
| `PluginService.inferTargets` | 5 | `PluginService.resolveOptions`, `PluginService.resolveTemplateInputs`, `PluginService.filter(…)`, `ProjectsService.readProjectScope`, `InstancesService.findProjectInstances` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
366
|
+
| `PluginService.inferTargets` | 5 | `PluginService.resolveOptions`, `PluginService.resolveTemplateInputs`, `PluginService.filter(…)`, `ProjectsService.readProjectScope`, `InstancesService.findProjectInstances` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:283` |
|
|
367
367
|
| `ScopeService.resolveScopedProjectNames` | 4 | `ScopeService.filter(…)`, `ScopeService.toSorted(…)`, `ScopeService.map(…)`, `ScopeService.filter(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:135` |
|
|
368
368
|
| `ProjectsService.listWorkspaceProjects` | 4 | `ProjectsService.toSorted(…)`, `ProjectsService.map(…)`, `ProjectsService.listProjectConfigurationFiles`, `ProjectsService.readIgnoredPaths` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.service.ts:118` |
|
|
369
|
+
| `PluginService.resolveTemplateInputs` | 4 | `ConfigurationService.loadConformetryConfiguration`, `PluginService.map(…)`, `PluginService.map(…)`, `buildTemplateHashCommand` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:234` |
|
|
369
370
|
| `anonymous` | 4 | `resolvePluginService`, `PluginService.inferTargets`, `filter(…)`, `map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/index.ts:49` |
|
|
370
371
|
| `ScopeService.resolveGroup` | 3 | `ScopeService.matchesProject`, `ScopeService.isProjectGroup`, `ScopeService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:75` |
|
|
371
372
|
| `AdapterService.listDirectory` | 3 | `AdapterService.resolveTreePath`, `AdapterService.map(…)`, `AdapterService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.service.ts:42` |
|
|
372
373
|
| `PathsService.resolveScopedDirectory` | 3 | `ConfigurationService.loadConformetryConfiguration`, `PathsService.find(…)`, `ScopeService.resolveScopedDirectory` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:167` |
|
|
373
|
-
| `PluginService.resolveOptions` | 3 | `OptionsService.readRegisteredConfigurationPath`, `PluginService.readNxConfiguration`, `OptionsService.resolvePluginOptions` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
374
|
-
| `PluginService.resolveTemplateInputs` | 3 | `ConfigurationService.loadConformetryConfiguration`, `PluginService.map(…)`, `PluginService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:227` |
|
|
374
|
+
| `PluginService.resolveOptions` | 3 | `OptionsService.readRegisteredConfigurationPath`, `PluginService.readNxConfiguration`, `OptionsService.resolvePluginOptions` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:193` |
|
|
375
375
|
| `ScopeService.matchesProject` | 2 | `ScopeService.isProjectGroup`, `ScopeService.every(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:53` |
|
|
376
376
|
| `ScopeService.resolveScopedDirectory` | 2 | `ScopeService.find(…)`, `ScopeService.findIndex(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:109` |
|
|
377
377
|
| `GeneratorService.buildSchema` | 2 | `GeneratorService.stringify`, `GeneratorService.buildSchemaProperties` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/generator/generator.service.ts:122` |
|
|
@@ -382,9 +382,9 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
382
382
|
| `PathsService.resolveNewProjectPath` | 2 | `missingDirectoryError`, `PathsService.resolveTypeDirectoryPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:140` |
|
|
383
383
|
| `ProjectsService.readIgnoredPaths` | 2 | `ProjectsService.filter(…)`, `ProjectsService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.service.ts:97` |
|
|
384
384
|
| `ProjectsService.readProjectScope` | 2 | `ProjectsService.isUnknownArray`, `ProjectsService.filter(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.service.ts:134` |
|
|
385
|
-
| `PluginService.assertEmittedPluginCurrent` | 2 | `GeneratorService.emitPlugin`, `ProjectsService.listWorkspaceProjects` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
386
|
-
| `PluginService.assertPluginInSync` | 2 | `PluginService.assertTemplatesExist`, `PluginService.assertEmittedPluginCurrent` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
387
|
-
| `PluginService.resolveTemplates` | 2 | `ConfigurationService.loadConformetryConfiguration`, `PluginService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
385
|
+
| `PluginService.assertEmittedPluginCurrent` | 2 | `GeneratorService.emitPlugin`, `ProjectsService.listWorkspaceProjects` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:87` |
|
|
386
|
+
| `PluginService.assertPluginInSync` | 2 | `PluginService.assertTemplatesExist`, `PluginService.assertEmittedPluginCurrent` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:121` |
|
|
387
|
+
| `PluginService.resolveTemplates` | 2 | `ConfigurationService.loadConformetryConfiguration`, `PluginService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:254` |
|
|
388
388
|
| `runConformetryGenerator` | 2 | `resolvePluginService`, `PluginService.runGenerator` | `projects/ic-suite/conformetry/conformetry-nx/src/index.ts:93` |
|
|
389
389
|
| `validateExecutor` | 2 | `resolvePluginService`, `PluginService.runValidation` | `projects/ic-suite/conformetry/conformetry-nx/src/executors/validate/executor.ts:16` |
|
|
390
390
|
| `ScopeService.isProjectGroup` | 1 | `ConfigurationService.isProjectScoped` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:39` |
|
|
@@ -406,8 +406,8 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
406
406
|
| `PathsService.resolveModuleParentPath` | 1 | `PathsService.toSorted(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:86` |
|
|
407
407
|
| `PathsService.resolveModulePath` | 1 | `PathsService.find(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:118` |
|
|
408
408
|
| `ProjectsService.map(…)` | 1 | `ProjectsService.readProjectScope` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/projects/projects.service.ts:124` |
|
|
409
|
-
| `PluginService.assertTemplatesExist` | 1 | `ConfigurationService.loadConformetryConfiguration` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
410
|
-
| `PluginService.map(…)` | 1 | `ConfigurationService.collectTemplate` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
409
|
+
| `PluginService.assertTemplatesExist` | 1 | `ConfigurationService.loadConformetryConfiguration` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:137` |
|
|
410
|
+
| `PluginService.map(…)` | 1 | `ConfigurationService.collectTemplate` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:263` |
|
|
411
411
|
| `resolveGeneratorService` | 1 | `resolvePluginContext` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin-context.utilities.ts:18` |
|
|
412
412
|
| `resolveOptionsService` | 1 | `resolvePluginContext` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin-context.utilities.ts:25` |
|
|
413
413
|
| `resolvePluginService` | 1 | `resolvePluginContext` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin-context.utilities.ts:32` |
|
|
@@ -593,6 +593,8 @@ graph LR
|
|
|
593
593
|
file_src_modules_plugin_plugin_service_ts["src/modules/plugin/plugin.service.ts"]
|
|
594
594
|
file_src_modules_plugin_plugin_service_unit_test_ts["src/modules/plugin/plugin.service.unit.test.ts"]
|
|
595
595
|
file_src_modules_plugin_plugin_types_ts["src/modules/plugin/plugin.types.ts"]
|
|
596
|
+
file_src_modules_plugin_plugin_utilities_ts["src/modules/plugin/plugin.utilities.ts"]
|
|
597
|
+
file_src_modules_plugin_plugin_utilities_unit_test_ts["src/modules/plugin/plugin.utilities.unit.test.ts"]
|
|
596
598
|
file_src_modules_projects_projects_constants_ts["src/modules/projects/projects.constants.ts"]
|
|
597
599
|
file_src_modules_projects_projects_module_ts["src/modules/projects/projects.module.ts"]
|
|
598
600
|
file_src_modules_projects_projects_service_ts["src/modules/projects/projects.service.ts"]
|
|
@@ -703,6 +705,7 @@ graph LR
|
|
|
703
705
|
file_src_modules_plugin_plugin_service_ts --> file_src_modules_paths_paths_service_ts
|
|
704
706
|
file_src_modules_plugin_plugin_service_ts --> file_src_modules_plugin_plugin_constants_ts
|
|
705
707
|
file_src_modules_plugin_plugin_service_ts --> file_src_modules_plugin_plugin_types_ts
|
|
708
|
+
file_src_modules_plugin_plugin_service_ts --> file_src_modules_plugin_plugin_utilities_ts
|
|
706
709
|
file_src_modules_plugin_plugin_service_ts --> file_src_modules_projects_projects_service_ts
|
|
707
710
|
file_src_modules_plugin_plugin_service_unit_test_ts --> file_src_modules_generator_generator_constants_ts
|
|
708
711
|
file_src_modules_plugin_plugin_service_unit_test_ts --> file_src_modules_generator_generator_service_ts
|
|
@@ -711,6 +714,8 @@ graph LR
|
|
|
711
714
|
file_src_modules_plugin_plugin_service_unit_test_ts --> file_src_modules_plugin_plugin_service_ts
|
|
712
715
|
file_src_modules_plugin_plugin_types_ts --> file_src_modules_instances_instances_types_ts
|
|
713
716
|
file_src_modules_plugin_plugin_types_ts --> file_src_modules_plugin_plugin_constants_ts
|
|
717
|
+
file_src_modules_plugin_plugin_utilities_ts --> file_src_modules_plugin_plugin_constants_ts
|
|
718
|
+
file_src_modules_plugin_plugin_utilities_unit_test_ts --> file_src_modules_plugin_plugin_utilities_ts
|
|
714
719
|
file_src_modules_projects_projects_module_ts --> file_src_modules_projects_projects_service_ts
|
|
715
720
|
file_src_modules_projects_projects_service_ts --> file_src_modules_instances_instances_types_ts
|
|
716
721
|
file_src_modules_projects_projects_service_ts --> file_src_modules_projects_projects_constants_ts
|
|
@@ -730,40 +735,40 @@ graph LR
|
|
|
730
735
|
|
|
731
736
|
### Project
|
|
732
737
|
|
|
733
|
-

|
|
739
|
+

|
|
735
740
|

|
|
736
|
-

|
|
737
742
|
|
|
738
743
|
### Measured Targets
|
|
739
744
|
|
|
740
|
-

|
|
741
746
|
|
|
742
747
|
### TypeScript
|
|
743
748
|
|
|
744
|
-

|
|
745
750
|

|
|
746
751
|

|
|
747
752
|

|
|
748
753
|

|
|
749
|
-

|
|
750
755
|

|
|
751
756
|
|
|
752
757
|
### JavaScript
|
|
753
758
|
|
|
754
759
|

|
|
755
|
-

|
|
761
|
+

|
|
757
762
|

|
|
758
|
-

|
|
759
764
|

|
|
760
|
-

|
|
761
766
|

|
|
762
|
-

|
|
768
|
+

|
|
769
|
+

|
|
770
|
+

|
|
771
|
+

|
|
767
772
|

|
|
768
773
|
|
|
769
774
|
### Python
|
|
@@ -879,9 +884,9 @@ graph LR
|
|
|
879
884
|

|
|
880
885
|

|
|
881
886
|

|
|
882
|
-

|
|
883
888
|

|
|
884
|
-

|
|
885
890
|

|
|
886
891
|

|
|
887
892
|

|
|
@@ -919,20 +924,20 @@ graph LR
|
|
|
919
924
|
### Markdown
|
|
920
925
|
|
|
921
926
|

|
|
922
|
-

|
|
923
928
|

|
|
924
|
-

|
|
930
|
+

|
|
926
931
|

|
|
927
932
|

|
|
928
933
|

|
|
929
|
-

|
|
935
|
+

|
|
936
|
+

|
|
932
937
|

|
|
933
938
|

|
|
934
939
|

|
|
935
|
-

|
|
936
941
|

|
|
937
942
|

|
|
938
943
|

|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e, h as t, i as n, n as r, t as i, x as a } from "./plugin-context.utilities-
|
|
1
|
+
import { g as e, h as t, i as n, n as r, t as i, x as a } from "./plugin-context.utilities-fOm9HZq-.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
|
|
@@ -708,7 +708,37 @@ J = __decorate([u({
|
|
|
708
708
|
})], J);
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.constants.ts
|
|
711
|
-
var me = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__conformetryPluginContext",
|
|
711
|
+
var me = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__conformetryPluginContext", ge = String.raw`
|
|
712
|
+
const crypto = require("crypto");
|
|
713
|
+
const fs = require("fs");
|
|
714
|
+
const path = require("path");
|
|
715
|
+
const list = (directory) =>
|
|
716
|
+
fs
|
|
717
|
+
.readdirSync(directory, { withFileTypes: true })
|
|
718
|
+
.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0))
|
|
719
|
+
.flatMap((entry) =>
|
|
720
|
+
entry.isDirectory()
|
|
721
|
+
? list(path.join(directory, entry.name))
|
|
722
|
+
: [path.join(directory, entry.name)],
|
|
723
|
+
);
|
|
724
|
+
const hash = crypto.createHash("sha256");
|
|
725
|
+
for (const directory of DIRECTORIES) {
|
|
726
|
+
if (!fs.existsSync(directory)) continue;
|
|
727
|
+
for (const file of list(directory)) {
|
|
728
|
+
hash.update(file + "\0");
|
|
729
|
+
hash.update(fs.readFileSync(file));
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
process.stdout.write(hash.digest("base64"));
|
|
733
|
+
`;
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.utilities.ts
|
|
736
|
+
function buildTemplateHashCommand(e) {
|
|
737
|
+
return `node -e '${ge.replace("DIRECTORIES", JSON.stringify(e)).replaceAll(/\s*\n\s*/g, " ").trim().replaceAll("'", String.raw`'\''`)}'`;
|
|
738
|
+
}
|
|
739
|
+
//#endregion
|
|
740
|
+
//#region projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts
|
|
741
|
+
var X, Z = X = class PluginService {
|
|
712
742
|
adapterService;
|
|
713
743
|
instancesService;
|
|
714
744
|
configurationService;
|
|
@@ -761,8 +791,8 @@ var me = "**/{project.json,conformetry.config.*}", he = "project.json", Y = "__c
|
|
|
761
791
|
}, e.surface ?? "the \"configurationPath\" option of the @conformetry/nx plugin in nx.json");
|
|
762
792
|
}
|
|
763
793
|
async resolveTemplateInputs(e) {
|
|
764
|
-
let t = await this.configurationService.loadConformetryConfiguration(e.configurationPath);
|
|
765
|
-
return [...
|
|
794
|
+
let t = await this.configurationService.loadConformetryConfiguration(e.configurationPath), n = [...new Set(t.map((e) => e.templatePath))];
|
|
795
|
+
return [...n.map((e) => `{workspaceRoot}/${e}/**/*`), { runtime: buildTemplateHashCommand(n) }];
|
|
766
796
|
}
|
|
767
797
|
async resolveTemplates(e) {
|
|
768
798
|
return (await this.configurationService.loadConformetryConfiguration(e.configurationPath)).map((t) => this.configurationService.collectTemplate({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "../../../plugin-context.utilities-
|
|
1
|
+
import { r as e } from "../../../plugin-context.utilities-fOm9HZq-.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, b as t, i as n, n as r, t as i, x as a } from "../../../plugin-context.utilities-
|
|
1
|
+
import { _ as e, b as t, i as n, n as r, t as i, x as a } from "../../../plugin-context.utilities-fOm9HZq-.js";
|
|
2
2
|
//#region projects/ic-suite/conformetry/conformetry-nx/src/generators/sync/generator.ts
|
|
3
3
|
async function syncGenerator(a, o) {
|
|
4
4
|
let s = await i(), c = await r(), l = await n(), u = await s.emitPlugin({
|
package/dist/src/index.d.ts
CHANGED
|
@@ -237,8 +237,13 @@ declare class GeneratorService {
|
|
|
237
237
|
declare interface InferredTarget {
|
|
238
238
|
readonly cache: boolean;
|
|
239
239
|
readonly executor: string;
|
|
240
|
-
/**
|
|
241
|
-
|
|
240
|
+
/**
|
|
241
|
+
* What must invalidate the cached result: files and globs, or the output of
|
|
242
|
+
* a command (`runtime`).
|
|
243
|
+
*/
|
|
244
|
+
readonly inputs?: (string | {
|
|
245
|
+
readonly runtime: string;
|
|
246
|
+
})[];
|
|
242
247
|
readonly options: Record<string, unknown>;
|
|
243
248
|
}
|
|
244
249
|
|
|
@@ -857,13 +862,19 @@ export declare class PluginService {
|
|
|
857
862
|
*/
|
|
858
863
|
private resolveOptions;
|
|
859
864
|
/**
|
|
860
|
-
* Builds
|
|
865
|
+
* Builds the inputs that invalidate a validation when a template changes: one
|
|
866
|
+
* glob per configured generator's template folder, and one command hashing
|
|
867
|
+
* the folders' contents.
|
|
861
868
|
*
|
|
862
869
|
* A template's own files are not part of `configurationPath` or the emitted
|
|
863
870
|
* plugin, so without this an instance's validate target would keep a stale
|
|
864
871
|
* cache hit across an edit to the very template it is measured against —
|
|
865
872
|
* which is exactly how a broken template placeholder once reached every
|
|
866
873
|
* matched instance's `package.json` unnoticed.
|
|
874
|
+
*
|
|
875
|
+
* The globs read Nx's file map, which leaves out any file the workspace
|
|
876
|
+
* excludes from it, whether through an ignore file or a plugin. The command
|
|
877
|
+
* reads the disk instead, so no template file escapes the cache key.
|
|
867
878
|
*/
|
|
868
879
|
private resolveTemplateInputs;
|
|
869
880
|
/** Reads every configured generator's template folder. */
|
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { n as p, t as m } from "../bootstrap.utilities-
|
|
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-fOm9HZq-.js";
|
|
2
|
+
import { n as p, t as m } from "../bootstrap.utilities-BmaK-AfQ.js";
|
|
3
3
|
import h from "node:path";
|
|
4
4
|
//#region projects/ic-suite/conformetry/conformetry-nx/src/index.ts
|
|
5
5
|
var g = {
|
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.
|
|
11
|
-
"@conformetry/generation": "0.0.
|
|
12
|
-
"@conformetry/output": "0.0.
|
|
13
|
-
"@conformetry/validation": "0.0.
|
|
10
|
+
"@conformetry/configuration": "0.0.32",
|
|
11
|
+
"@conformetry/generation": "0.0.32",
|
|
12
|
+
"@conformetry/output": "0.0.31",
|
|
13
|
+
"@conformetry/validation": "0.0.31",
|
|
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.
|
|
87
|
+
"version": "0.0.33"
|
|
88
88
|
}
|