@uniformdev/transformer 1.1.13 → 1.1.14
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 +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1770,11 +1770,12 @@ var CompositionConverterService = class {
|
|
|
1770
1770
|
if (flattenComponentIds.length > 0) {
|
|
1771
1771
|
this.transformContentReferences(entry);
|
|
1772
1772
|
}
|
|
1773
|
-
const
|
|
1773
|
+
const entryId = entry.entry._id;
|
|
1774
|
+
const entryFilePath = this.fileSystem.joinPath(entriesDirFull, `${entryId}.json`);
|
|
1774
1775
|
this.logger.action(
|
|
1775
1776
|
whatIf,
|
|
1776
1777
|
"WRITE",
|
|
1777
|
-
`${entriesDir}/${
|
|
1778
|
+
`${entriesDir}/${entryId}.json (${compositionType}, "${this.truncate(compositionName, 50)}")`
|
|
1778
1779
|
);
|
|
1779
1780
|
if (!whatIf) {
|
|
1780
1781
|
await this.fileSystem.writeFile(entryFilePath, entry);
|
|
@@ -1906,9 +1907,10 @@ var CompositionConverterService = class {
|
|
|
1906
1907
|
extraWrapperProps[key] = value;
|
|
1907
1908
|
}
|
|
1908
1909
|
}
|
|
1910
|
+
const entryId = computeGuidHash(`entry${comp._id}`);
|
|
1909
1911
|
return {
|
|
1910
1912
|
entry: {
|
|
1911
|
-
_id:
|
|
1913
|
+
_id: entryId,
|
|
1912
1914
|
_name: comp._name ?? comp._id,
|
|
1913
1915
|
type: comp.type,
|
|
1914
1916
|
fields: { ...comp.parameters ?? {} },
|