@revoengine/cli 1.0.6 → 1.0.7
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.
|
@@ -725,6 +725,9 @@ async function pushSingleComponent(context, manifestPath) {
|
|
|
725
725
|
throw new Error(`Missing component name in ${manifestPath}.`);
|
|
726
726
|
}
|
|
727
727
|
const elements = (component.elements || []).map((element) => ({
|
|
728
|
+
...(typeof element.componentElementId === 'string' && element.componentElementId
|
|
729
|
+
? { componentElementId: element.componentElementId }
|
|
730
|
+
: {}),
|
|
728
731
|
key: element.key,
|
|
729
732
|
desc: element.desc,
|
|
730
733
|
details: element.details || '',
|
|
@@ -785,6 +788,13 @@ async function pushSingleComponent(context, manifestPath) {
|
|
|
785
788
|
targetPath,
|
|
786
789
|
reason: 'no changes',
|
|
787
790
|
};
|
|
791
|
+
try {
|
|
792
|
+
const remote = unwrapComponent(await client.getComponent(componentId));
|
|
793
|
+
upsertLockFromRemote(context.cwd, remote, targetPath);
|
|
794
|
+
}
|
|
795
|
+
catch {
|
|
796
|
+
upsertLockFromRemote(context.cwd, component, targetPath);
|
|
797
|
+
}
|
|
788
798
|
printSyncStatus(println, {
|
|
789
799
|
status: 'Skipped',
|
|
790
800
|
direction: 'push',
|
package/dist/src/types.d.ts
CHANGED