@uniformdev/transformer 1.1.23 → 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/cli/index.js +8 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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);
|
|
@@ -860,7 +862,7 @@ var CompositionConverterService = class {
|
|
|
860
862
|
type: "contentReference",
|
|
861
863
|
typeConfig: {
|
|
862
864
|
isMulti: true,
|
|
863
|
-
|
|
865
|
+
allowedTypes: [refType]
|
|
864
866
|
},
|
|
865
867
|
localizable: false
|
|
866
868
|
});
|
|
@@ -882,7 +884,7 @@ var CompositionConverterService = class {
|
|
|
882
884
|
name: resolvedBlockId,
|
|
883
885
|
type: "$block",
|
|
884
886
|
typeConfig: {
|
|
885
|
-
|
|
887
|
+
allowedTypes: [resolvedBlockId]
|
|
886
888
|
},
|
|
887
889
|
localizable: false
|
|
888
890
|
});
|