@metacells/mcellui-cli 0.2.2 → 0.2.3
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
|
@@ -1004,6 +1004,12 @@ var addCommand = new Command2().name("add").description("Add a component to your
|
|
|
1004
1004
|
const pascalName = toPascalCase(componentName);
|
|
1005
1005
|
const importPath = config.aliases.components || "@/components";
|
|
1006
1006
|
console.log(chalk4.dim(` Import: import { ${pascalName} } from '${importPath}/${componentName}';`));
|
|
1007
|
+
if (registryItem?.exports?.length) {
|
|
1008
|
+
console.log(chalk4.dim(` Also exports: ${registryItem.exports.join(", ")}`));
|
|
1009
|
+
}
|
|
1010
|
+
if (registryItem?.setup) {
|
|
1011
|
+
console.log(chalk4.cyan(` Setup: ${registryItem.setup}`));
|
|
1012
|
+
}
|
|
1007
1013
|
}
|
|
1008
1014
|
if (component.dependencies?.length) {
|
|
1009
1015
|
allDependencies.push(...component.dependencies);
|