@uniformdev/transformer 1.1.28 → 1.1.29
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/dist/cli/index.js +16 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -638,13 +638,21 @@ var CompositionConverterService = class {
|
|
|
638
638
|
}
|
|
639
639
|
const contentTypeMap = /* @__PURE__ */ new Map();
|
|
640
640
|
for (const rootType of rootComponentTypes) {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
641
|
+
try {
|
|
642
|
+
const { component } = await this.componentService.loadComponent(
|
|
643
|
+
componentsDirFull,
|
|
644
|
+
rootType,
|
|
645
|
+
{ strict }
|
|
646
|
+
);
|
|
647
|
+
const contentType = this.generateContentType(component);
|
|
648
|
+
contentTypeMap.set(rootType, contentType);
|
|
649
|
+
} catch (error) {
|
|
650
|
+
if (error instanceof ComponentNotFoundError) {
|
|
651
|
+
this.logger.warn(`Component not found: ${rootType} \u2014 skipping content type generation`);
|
|
652
|
+
continue;
|
|
653
|
+
}
|
|
654
|
+
throw error;
|
|
655
|
+
}
|
|
648
656
|
}
|
|
649
657
|
const allTargetTypes = [.../* @__PURE__ */ new Set([...componentsToReferences, ...componentsToBlocks])];
|
|
650
658
|
const targetContentTypeMap = /* @__PURE__ */ new Map();
|
|
@@ -5014,7 +5022,7 @@ function createRemoveFieldCommand() {
|
|
|
5014
5022
|
// package.json
|
|
5015
5023
|
var package_default = {
|
|
5016
5024
|
name: "@uniformdev/transformer",
|
|
5017
|
-
version: "1.1.
|
|
5025
|
+
version: "1.1.29",
|
|
5018
5026
|
description: "CLI tool for transforming Uniform.dev serialization files offline",
|
|
5019
5027
|
type: "module",
|
|
5020
5028
|
bin: {
|