@uniformdev/transformer 1.1.24 → 1.1.25

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/index.js CHANGED
@@ -582,11 +582,13 @@ var CompositionConverterService = class {
582
582
  contentTypesDir,
583
583
  entriesDir,
584
584
  compositionTypes,
585
- componentsToReferences,
586
- componentsToBlocks,
585
+ componentsToReferences: rawComponentsToReferences,
586
+ componentsToBlocks: rawComponentsToBlocks,
587
587
  whatIf,
588
588
  strict
589
589
  } = options;
590
+ const componentsToReferences = [...new Set(rawComponentsToReferences)];
591
+ const componentsToBlocks = [...new Set(rawComponentsToBlocks)];
590
592
  const compositionsDirFull = this.fileSystem.resolvePath(rootDir, compositionsDir);
591
593
  const componentsDirFull = this.fileSystem.resolvePath(rootDir, componentsDir);
592
594
  const contentTypesDirFull = this.fileSystem.resolvePath(rootDir, contentTypesDir);