@getcoherent/core 0.6.22 → 0.6.24

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6826,6 +6826,12 @@ async function generateSharedComponent(projectRoot, input) {
6826
6826
  const code2 = input.code ?? getDefaultTemplate(componentName2, input.type, existing.name);
6827
6827
  await mkdir2(dirname2(fullPath2), { recursive: true });
6828
6828
  await writeFile3(fullPath2, code2, "utf-8");
6829
+ if (input.propsInterface || input.usageExample || input.description) {
6830
+ if (input.propsInterface) existing.propsInterface = input.propsInterface;
6831
+ if (input.usageExample) existing.usageExample = input.usageExample;
6832
+ if (input.description) existing.description = input.description;
6833
+ await saveManifest(projectRoot, manifest);
6834
+ }
6829
6835
  return { id: existing.id, name: existing.name, file: existing.file };
6830
6836
  }
6831
6837
  const uniqueName = resolveUniqueName(manifest, input.name);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.22",
6
+ "version": "0.6.24",
7
7
  "description": "Core design system engine for Coherent",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",