@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',
@@ -13,6 +13,7 @@ export type CommandContext = {
13
13
  error: (message: string) => void;
14
14
  };
15
15
  export type ComponentElementRecord = {
16
+ componentElementId?: string;
16
17
  key: string;
17
18
  desc?: string;
18
19
  details?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revoengine/cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "CLI package for the RevoEngine Platform API",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",