@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 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
- const { component } = await this.componentService.loadComponent(
642
- componentsDirFull,
643
- rootType,
644
- { strict }
645
- );
646
- const contentType = this.generateContentType(component);
647
- contentTypeMap.set(rootType, contentType);
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.28",
5025
+ version: "1.1.29",
5018
5026
  description: "CLI tool for transforming Uniform.dev serialization files offline",
5019
5027
  type: "module",
5020
5028
  bin: {