@conformetry/nx 0.0.65 → 0.0.66
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 +13 -0
- package/README.md +203 -51
- package/dist/{bootstrap.utilities-BLYNYMP2.js → bootstrap.utilities-D3SsCcMO.js} +1 -1
- package/dist/{plugin-context.utilities-BgCNBly_.js → plugin-context.utilities-DXqnEBw0.js} +20 -9
- 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 +16 -0
- package/dist/src/index.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 0.0.66 (2026-11-04)
|
|
2
|
+
|
|
3
|
+
### 🔥 Performance
|
|
4
|
+
|
|
5
|
+
- **conformetry:** ⚡️ expand each instance glob once per inferTargets pass ([#2102](https://github.com/organizzolini/codebase/pull/2102))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated conformetry-configuration to 0.0.65
|
|
10
|
+
- Updated conformetry-generation to 0.0.65
|
|
11
|
+
- Updated conformetry-validation to 0.0.64
|
|
12
|
+
- Updated conformetry-output to 0.0.64
|
|
13
|
+
|
|
1
14
|
## 0.0.65 (2026-11-04)
|
|
2
15
|
|
|
3
16
|
### 🧱 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 | 131 |
|
|
163
|
+
| Files | 50 |
|
|
164
|
+
| Calls traced | 168 |
|
|
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:449]
|
|
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,7 +215,7 @@ 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:404]
|
|
219
219
|
↳ Runs one configured generator against an Nx tree.
|
|
220
220
|
└─> PluginService.assertPluginInSync(args: { configurationPath: string; workspaceRoot: string; }): Promise<void> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:122]
|
|
221
221
|
↳ Fails fast when the plugin would run against a stale or broken setup.
|
|
@@ -269,27 +269,29 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
269
269
|
<details>
|
|
270
270
|
<summary>5 more call stacks</summary>
|
|
271
271
|
|
|
272
|
-
**4. `anonymous`** — depth ≥
|
|
272
|
+
**4. `anonymous`** — depth ≥ 12 · orphan-root
|
|
273
273
|
|
|
274
274
|
```text
|
|
275
275
|
🚀 anonymous(…): Promise<CreateNodesResultArray> [projects/ic-suite/conformetry/conformetry-nx/src/index.ts:49]
|
|
276
276
|
└─> PluginService.inferTargets(args: InferTargetsArguments): Promise<Map<string, InferredTargets>> [projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:335]
|
|
277
277
|
↳ Infers a validation target onto every project that holds at least one instance.
|
|
278
|
-
└─> InstancesService.findProjectInstances(args: FindProjectInstancesArguments): Promise<Instance[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:
|
|
278
|
+
└─> InstancesService.findProjectInstances(args: FindProjectInstancesArguments): Promise<Instance[]> [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:109]
|
|
279
279
|
↳ Expands every instance group that applies to a project, keeping only the instances that live inside it.
|
|
280
|
-
└─> InstancesService.flatMap(…)(this: undefined, group: ConformetryInstanceGroup): Instance[] [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:
|
|
281
|
-
└─>
|
|
282
|
-
↳ Expands
|
|
283
|
-
└─>
|
|
280
|
+
└─> InstancesService.flatMap(…)(this: undefined, group: ConformetryInstanceGroup): Instance[] [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:125]
|
|
281
|
+
└─> InstancesService.discoverGroup(…): Instance[] [projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:46]
|
|
282
|
+
↳ Expands one group's globs, reusing an earlier expansion of the same ones.
|
|
283
|
+
└─> ConfigurationService.findInstances(args: FindInstancesArguments): Instance[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:216]
|
|
284
284
|
↳ Expands instance globs into the instances that exist.
|
|
285
|
-
└─>
|
|
286
|
-
↳ Expands
|
|
287
|
-
└─> InstanceDiscoveryLocatingService.
|
|
288
|
-
↳ Expands
|
|
289
|
-
└─> InstanceDiscoveryLocatingService.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
└─> InstanceDiscoveryLocatingService.
|
|
285
|
+
└─> InstanceDiscoveryService.findInstances(args: FindInstancesArguments): Instance[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:118]
|
|
286
|
+
↳ Expands instance globs into the instances that exist.
|
|
287
|
+
└─> InstanceDiscoveryLocatingService.findInstances(args: FindInstancesArguments): Instance[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-locating.service.ts:156]
|
|
288
|
+
↳ Expands every pattern and returns one instance per distinct path, name, and scope kind.
|
|
289
|
+
└─> InstanceDiscoveryLocatingService.globEntries(…): Dirent<string>[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-locating.service.ts:66]
|
|
290
|
+
↳ Expands one pattern, leaving out every path an exclude glob matches.
|
|
291
|
+
└─> InstanceDiscoveryLocatingService.filter(…)(entry: fs.Dirent<string>): boolean [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-locating.service.ts:76]
|
|
292
|
+
└─> InstanceDiscoveryLocatingService.isExcluded(…): boolean [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-locating.service.ts:85]
|
|
293
|
+
↳ Whether an exclude glob matches a found path, workspace-relative.
|
|
294
|
+
└─> InstanceDiscoveryLocatingService.some(…)(pattern: string): boolean [projects/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-locating.service.ts:95]
|
|
293
295
|
```
|
|
294
296
|
|
|
295
297
|
**5. `syncGenerator`** — depth ≥ 11 · orphan-root
|
|
@@ -352,18 +354,18 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
352
354
|
| --- | --- | --- | --- |
|
|
353
355
|
| `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` |
|
|
354
356
|
| `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` |
|
|
355
|
-
| `PluginService.runGenerator` | 7 | `PluginService.resolveOptions`, `PluginService.assertPluginInSync`, `PluginService.resolveGeneratorDefinition`, `AdapterService.createAdapters`, `OptionsService.resolveGeneratorInputs`, `GenerationService.runGenerator`, `PathsService.resolveGenerationPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:
|
|
357
|
+
| `PluginService.runGenerator` | 7 | `PluginService.resolveOptions`, `PluginService.assertPluginInSync`, `PluginService.resolveGeneratorDefinition`, `AdapterService.createAdapters`, `OptionsService.resolveGeneratorInputs`, `GenerationService.runGenerator`, `PathsService.resolveGenerationPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/plugin/plugin.service.ts:404` |
|
|
356
358
|
|
|
357
359
|
<details>
|
|
358
|
-
<summary>
|
|
360
|
+
<summary>68 more callables</summary>
|
|
359
361
|
|
|
360
362
|
| Callable | Breadth | Calls directly | Location |
|
|
361
363
|
| --- | --- | --- | --- |
|
|
362
364
|
| `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
|
-
| `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:
|
|
365
|
+
| `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:109` |
|
|
364
366
|
| `PathsService.resolveAllowedDirectories` | 6 | `ConfigurationService.loadConformetryConfiguration`, `PathsService.flatMap(…)`, `PathsService.filter(…)`, `PathsService.find(…)`, `PathsService.some(…)`, `PathsService.map(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:126` |
|
|
365
367
|
| `PathsService.resolveGenerationPath` | 6 | `PathsService.resolveAllowedDirectories`, `PathsService.resolveExplicitDirectory`, `PathsService.resolveNewProjectPath`, `InstancesService.findProjectInstances`, `PathsService.requireModulePath`, `PathsService.resolveProjectParentPath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:365` |
|
|
366
|
-
| `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:
|
|
368
|
+
| `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:449` |
|
|
367
369
|
| `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:335` |
|
|
368
370
|
| `ScopeService.resolveScopedProjectNames` | 4 | `ScopeService.filter(…)`, `ScopeService.toSorted(…)`, `ScopeService.map(…)`, `ScopeService.filter(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/scope/scope.service.ts:135` |
|
|
369
371
|
| `PathsService.resolveNewProjectPath` | 4 | `staticDirectoryPrefix`, `missingDirectoryError`, `PathsService.resolveTypeDirectoryPath`, `PathsService.assertDirectoryAllowed` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.service.ts:241` |
|
|
@@ -404,9 +406,10 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
404
406
|
| `AdapterService.listDirectory` | 1 | `AdapterService.listDirectory` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.service.ts:114` |
|
|
405
407
|
| `AdapterService.readFile` | 1 | `AdapterService.readFile` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.service.ts:124` |
|
|
406
408
|
| `AdapterService.writeFile` | 1 | `AdapterService.resolveTreePath` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/adapter/adapter.service.ts:131` |
|
|
407
|
-
| `InstancesService.
|
|
408
|
-
| `InstancesService.flatMap(…)` | 1 | `
|
|
409
|
-
| `InstancesService.
|
|
409
|
+
| `InstancesService.discoverGroup` | 1 | `ConfigurationService.findInstances` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:46` |
|
|
410
|
+
| `InstancesService.flatMap(…)` | 1 | `ScopeService.resolveGroup` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:120` |
|
|
411
|
+
| `InstancesService.flatMap(…)` | 1 | `InstancesService.discoverGroup` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:125` |
|
|
412
|
+
| `InstancesService.filter(…)` | 1 | `InstancesService.isInsideProject` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/instances/instances.service.ts:132` |
|
|
410
413
|
| `matchesDirectoryPattern` | 1 | `matchesSegments` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.utilities.ts:11` |
|
|
411
414
|
| `staticDirectoryPrefix` | 1 | `findIndex(…)` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.utilities.ts:22` |
|
|
412
415
|
| `some(…)` | 1 | `matchesSegments` | `projects/ic-suite/conformetry/conformetry-nx/src/modules/paths/paths.utilities.ts:42` |
|
|
@@ -559,6 +562,7 @@ graph LR
|
|
|
559
562
|
file_callidescope_config_ts["callidescope.config.ts"]
|
|
560
563
|
file_codependix_config_ts["codependix.config.ts"]
|
|
561
564
|
file_codometer_config_ts["codometer.config.ts"]
|
|
565
|
+
file_coinagerie_config_ts["coinagerie.config.ts"]
|
|
562
566
|
file_eslint_config_ts["eslint.config.ts"]
|
|
563
567
|
file_src_conformetry_nx_main_ts["src/conformetry-nx.main.ts"]
|
|
564
568
|
file_src_conformetry_nx_main_unit_test_ts["src/conformetry-nx.main.unit.test.ts"]
|
|
@@ -751,23 +755,23 @@ graph LR
|
|
|
751
755
|
|
|
752
756
|
### Project
|
|
753
757
|
|
|
754
|
-

|
|
759
|
+

|
|
756
760
|

|
|
757
|
-

|
|
758
762
|
|
|
759
763
|
### Measured Targets
|
|
760
764
|
|
|
761
|
-

|
|
762
766
|
|
|
763
767
|
### TypeScript
|
|
764
768
|
|
|
765
|
-

|
|
766
770
|

|
|
767
771
|

|
|
768
772
|

|
|
769
773
|

|
|
770
|
-

|
|
771
775
|

|
|
772
776
|
|
|
773
777
|
### JavaScript
|
|
@@ -776,15 +780,15 @@ graph LR
|
|
|
776
780
|

|
|
777
781
|

|
|
778
782
|

|
|
779
|
-

|
|
784
|
+

|
|
785
|
+

|
|
786
|
+

|
|
787
|
+

|
|
788
|
+

|
|
785
789
|

|
|
786
|
-

|
|
791
|
+

|
|
788
792
|

|
|
789
793
|
|
|
790
794
|
### Python
|
|
@@ -805,16 +809,16 @@ graph LR
|
|
|
805
809
|
### JSON
|
|
806
810
|
|
|
807
811
|

|
|
808
|
-

|
|
809
813
|

|
|
810
814
|

|
|
811
815
|

|
|
812
|
-

|
|
813
817
|

|
|
814
818
|

|
|
815
819
|

|
|
816
|
-

|
|
821
|
+

|
|
818
822
|

|
|
819
823
|
|
|
820
824
|
### YAML
|
|
@@ -940,23 +944,171 @@ graph LR
|
|
|
940
944
|
### Markdown
|
|
941
945
|
|
|
942
946
|

|
|
943
|
-

|
|
944
948
|

|
|
945
|
-

|
|
950
|
+

|
|
947
951
|

|
|
948
952
|

|
|
949
953
|

|
|
950
|
-

|
|
955
|
+

|
|
956
|
+

|
|
953
957
|

|
|
954
958
|

|
|
955
959
|

|
|
956
|
-

|
|
957
961
|

|
|
958
962
|

|
|
959
963
|

|
|
960
964
|

|
|
961
965
|

|
|
962
966
|
<!-- codometer:end -->
|
|
967
|
+
|
|
968
|
+
<!-- coinagerie:start -->
|
|
969
|
+
|
|
970
|
+
## 🪙 Coinagerie
|
|
971
|
+
|
|
972
|
+
The words this project uses that the root glossary does not define, regenerated with `nx run conformetry-nx:coinagerie-check:write`.
|
|
973
|
+
|
|
974
|
+
- **abort**:
|
|
975
|
+
- **absolute**:
|
|
976
|
+
- **actual**:
|
|
977
|
+
- **adapter**:
|
|
978
|
+
- **after**:
|
|
979
|
+
- **anything**:
|
|
980
|
+
- **array**:
|
|
981
|
+
- **assertion**:
|
|
982
|
+
- **assign**:
|
|
983
|
+
- **bare**:
|
|
984
|
+
- **basename**:
|
|
985
|
+
- **bootstrap**:
|
|
986
|
+
- **breadth**:
|
|
987
|
+
- **bug**:
|
|
988
|
+
- **call**:
|
|
989
|
+
- **child**:
|
|
990
|
+
- **clear**:
|
|
991
|
+
- **collection**:
|
|
992
|
+
- **compare**:
|
|
993
|
+
- **compile**:
|
|
994
|
+
- **compiler**:
|
|
995
|
+
- **console**:
|
|
996
|
+
- **constant**:
|
|
997
|
+
- **controller**:
|
|
998
|
+
- **count**:
|
|
999
|
+
- **decorator**:
|
|
1000
|
+
- **define**:
|
|
1001
|
+
- **definition**:
|
|
1002
|
+
- **describe**:
|
|
1003
|
+
- **discover**:
|
|
1004
|
+
- **discovery**:
|
|
1005
|
+
- **disk**:
|
|
1006
|
+
- **each**:
|
|
1007
|
+
- **empty**:
|
|
1008
|
+
- **encode**:
|
|
1009
|
+
- **entry**:
|
|
1010
|
+
- **equal**:
|
|
1011
|
+
- **exactly**:
|
|
1012
|
+
- **execution**:
|
|
1013
|
+
- **exp**:
|
|
1014
|
+
- **experimental**:
|
|
1015
|
+
- **explicit**:
|
|
1016
|
+
- **expression**:
|
|
1017
|
+
- **factory**:
|
|
1018
|
+
- **fake**:
|
|
1019
|
+
- **field**:
|
|
1020
|
+
- **filename**:
|
|
1021
|
+
- **filesystem**:
|
|
1022
|
+
- **flat**:
|
|
1023
|
+
- **force**:
|
|
1024
|
+
- **formatter**:
|
|
1025
|
+
- **gadget**:
|
|
1026
|
+
- **generation**:
|
|
1027
|
+
- **gitkeep**:
|
|
1028
|
+
- **greater**:
|
|
1029
|
+
- **hint**:
|
|
1030
|
+
- **homepage**:
|
|
1031
|
+
- **implementation**:
|
|
1032
|
+
- **indent**:
|
|
1033
|
+
- **injectable**:
|
|
1034
|
+
- **inside**:
|
|
1035
|
+
- **instance**:
|
|
1036
|
+
- **isolate**:
|
|
1037
|
+
- **item**:
|
|
1038
|
+
- **java**:
|
|
1039
|
+
- **kind**:
|
|
1040
|
+
- **lead**:
|
|
1041
|
+
- **least**:
|
|
1042
|
+
- **length**:
|
|
1043
|
+
- **link**:
|
|
1044
|
+
- **literal**:
|
|
1045
|
+
- **load**:
|
|
1046
|
+
- **locale**:
|
|
1047
|
+
- **logger**:
|
|
1048
|
+
- **lstat**:
|
|
1049
|
+
- **make**:
|
|
1050
|
+
- **manifest**:
|
|
1051
|
+
- **maximum**:
|
|
1052
|
+
- **meta**:
|
|
1053
|
+
- **metric**:
|
|
1054
|
+
- **miss**:
|
|
1055
|
+
- **mix**:
|
|
1056
|
+
- **mkdtemp**:
|
|
1057
|
+
- **mock**:
|
|
1058
|
+
- **normalize**:
|
|
1059
|
+
- **notice**:
|
|
1060
|
+
- **ok**:
|
|
1061
|
+
- **omit**:
|
|
1062
|
+
- **once**:
|
|
1063
|
+
- **original**:
|
|
1064
|
+
- **part**:
|
|
1065
|
+
- **posix**:
|
|
1066
|
+
- **promise**:
|
|
1067
|
+
- **prototype**:
|
|
1068
|
+
- **publish**:
|
|
1069
|
+
- **readdir**:
|
|
1070
|
+
- **readlink**:
|
|
1071
|
+
- **real**:
|
|
1072
|
+
- **realpath**:
|
|
1073
|
+
- **recursive**:
|
|
1074
|
+
- **reg**:
|
|
1075
|
+
- **reject**:
|
|
1076
|
+
- **relative**:
|
|
1077
|
+
- **replace**:
|
|
1078
|
+
- **resolution**:
|
|
1079
|
+
- **rest**:
|
|
1080
|
+
- **runtime**:
|
|
1081
|
+
- **scoped**:
|
|
1082
|
+
- **score**:
|
|
1083
|
+
- **segment**:
|
|
1084
|
+
- **sep**:
|
|
1085
|
+
- **slice**:
|
|
1086
|
+
- **some**:
|
|
1087
|
+
- **sort**:
|
|
1088
|
+
- **split**:
|
|
1089
|
+
- **spy**:
|
|
1090
|
+
- **statistic**:
|
|
1091
|
+
- **stdout**:
|
|
1092
|
+
- **stem**:
|
|
1093
|
+
- **stray**:
|
|
1094
|
+
- **strict**:
|
|
1095
|
+
- **stringify**:
|
|
1096
|
+
- **subpath**:
|
|
1097
|
+
- **substitution**:
|
|
1098
|
+
- **success**:
|
|
1099
|
+
- **surface**:
|
|
1100
|
+
- **symbolic**:
|
|
1101
|
+
- **symlink**:
|
|
1102
|
+
- **synthetic**:
|
|
1103
|
+
- **than**:
|
|
1104
|
+
- **threshold**:
|
|
1105
|
+
- **timer**:
|
|
1106
|
+
- **tmpdir**:
|
|
1107
|
+
- **trim**:
|
|
1108
|
+
- **untagged**:
|
|
1109
|
+
- **vi**:
|
|
1110
|
+
- **warn**:
|
|
1111
|
+
- **widget**:
|
|
1112
|
+
- **wildcard**:
|
|
1113
|
+
|
|
1114
|
+
<!-- coinagerie:end -->
|
|
@@ -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-DXqnEBw0.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
|
// src/modules/generator/bootstrap.utilities.ts
|
|
@@ -441,6 +441,18 @@ var B = class InstancesService {
|
|
|
441
441
|
constructor(e, t) {
|
|
442
442
|
this.configurationService = e, this.scopeService = t;
|
|
443
443
|
}
|
|
444
|
+
discoverGroup(e) {
|
|
445
|
+
let { group: t } = e, n = {
|
|
446
|
+
...t.exclude === void 0 ? {} : { exclude: t.exclude },
|
|
447
|
+
patterns: t.patterns ?? [],
|
|
448
|
+
...t.substitutions === void 0 ? {} : { substitutions: t.substitutions },
|
|
449
|
+
...t.threshold === void 0 ? {} : { threshold: t.threshold },
|
|
450
|
+
workingDirectory: e.workspaceRoot
|
|
451
|
+
}, r = JSON.stringify(n), i = e.cache?.get(r);
|
|
452
|
+
if (i !== void 0) return i;
|
|
453
|
+
let a = this.configurationService.findInstances(n);
|
|
454
|
+
return e.cache?.set(r, a), a;
|
|
455
|
+
}
|
|
444
456
|
isInsideProject(e) {
|
|
445
457
|
let t = a.relative(e.projectRootPath, a.join(e.instance.path, e.instance.nameStem));
|
|
446
458
|
return t !== ".." && !t.startsWith(`..${a.sep}`) && !a.isAbsolute(t);
|
|
@@ -449,12 +461,10 @@ var B = class InstancesService {
|
|
|
449
461
|
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({
|
|
450
462
|
group: t,
|
|
451
463
|
project: e.project
|
|
452
|
-
})).flatMap((t) => this.
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
...t.threshold === void 0 ? {} : { threshold: t.threshold },
|
|
457
|
-
workingDirectory: e.workspaceRoot
|
|
464
|
+
})).flatMap((t) => this.discoverGroup({
|
|
465
|
+
cache: e.discoveryCache,
|
|
466
|
+
group: t,
|
|
467
|
+
workspaceRoot: e.workspaceRoot
|
|
458
468
|
})).filter((e) => this.isInsideProject({
|
|
459
469
|
instance: e,
|
|
460
470
|
projectRootPath: n
|
|
@@ -877,14 +887,15 @@ var X, Z = X = class PluginService {
|
|
|
877
887
|
let t = this.resolveOptions({
|
|
878
888
|
options: e.options,
|
|
879
889
|
workspaceRoot: e.workspaceRoot
|
|
880
|
-
}), n = await this.resolveTemplateInputs({ configurationPath: t.configurationPath }), r = /* @__PURE__ */ new Map();
|
|
881
|
-
for (let
|
|
890
|
+
}), n = await this.resolveTemplateInputs({ configurationPath: t.configurationPath }), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
891
|
+
for (let o of e.projectConfigurationFiles.filter((e) => a.basename(e) === ge)) {
|
|
882
892
|
let a = this.projectsService.readProjectScope({
|
|
883
|
-
projectConfigurationFile:
|
|
893
|
+
projectConfigurationFile: o,
|
|
884
894
|
workspaceRoot: e.workspaceRoot
|
|
885
895
|
});
|
|
886
896
|
a.root !== "." && (await this.instancesService.findProjectInstances({
|
|
887
897
|
configurationPath: t.configurationPath,
|
|
898
|
+
discoveryCache: i,
|
|
888
899
|
project: a,
|
|
889
900
|
workspaceRoot: e.workspaceRoot
|
|
890
901
|
})).length !== 0 && r.set(a.root, { [t.validateTargetName]: {
|
|
@@ -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-DXqnEBw0.js";
|
|
2
2
|
// 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
|
@@ -162,6 +162,12 @@ declare interface EmittedFile {
|
|
|
162
162
|
/** Arguments for collecting the instances that belong to one project. */
|
|
163
163
|
declare interface FindProjectInstancesArguments {
|
|
164
164
|
readonly configurationPath: string;
|
|
165
|
+
/**
|
|
166
|
+
* Shared across the projects of one pass, so a workspace-wide glob that is
|
|
167
|
+
* the same for every project is expanded once. Omit it and every call globs
|
|
168
|
+
* for itself.
|
|
169
|
+
*/
|
|
170
|
+
readonly discoveryCache?: Map<string, Instance[]>;
|
|
165
171
|
readonly project: ProjectScope;
|
|
166
172
|
readonly workspaceRoot: string;
|
|
167
173
|
}
|
|
@@ -279,6 +285,16 @@ export declare class InstancesService {
|
|
|
279
285
|
private readonly configurationService;
|
|
280
286
|
private readonly scopeService;
|
|
281
287
|
constructor(configurationService: ConfigurationService, scopeService: ScopeService);
|
|
288
|
+
/**
|
|
289
|
+
* Expands one group's globs, reusing an earlier expansion of the same ones.
|
|
290
|
+
*
|
|
291
|
+
* An untagged group is the same glob for every project, and a glob walks the
|
|
292
|
+
* whole workspace, so expanding it per project is what made inferring the
|
|
293
|
+
* targets of ~70 projects take half a minute. The key is the whole request,
|
|
294
|
+
* so a tagged group, whose globs differ by project root, never shares an
|
|
295
|
+
* entry with another project's.
|
|
296
|
+
*/
|
|
297
|
+
private discoverGroup;
|
|
282
298
|
/**
|
|
283
299
|
* Returns whether an instance belongs to a project.
|
|
284
300
|
*
|
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-DXqnEBw0.js";
|
|
2
|
+
import { n as p, t as m } from "../bootstrap.utilities-D3SsCcMO.js";
|
|
3
3
|
import h from "node:path";
|
|
4
4
|
// 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.65",
|
|
11
|
+
"@conformetry/generation": "0.0.65",
|
|
12
|
+
"@conformetry/output": "0.0.64",
|
|
13
|
+
"@conformetry/validation": "0.0.64",
|
|
14
14
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
15
15
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
16
16
|
"@nx/devkit": "^24.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.66"
|
|
88
88
|
}
|