@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.
- package/dist/index.js +6 -0
- 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);
|