@metacells/mcellui-cli 0.2.1 → 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 +8 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1002,7 +1002,14 @@ var addCommand = new Command2().name("add").description("Add a component to your
|
|
|
1002
1002
|
console.log(chalk4.dim(` Props: ${registryItem.props.join(", ")}`));
|
|
1003
1003
|
}
|
|
1004
1004
|
const pascalName = toPascalCase(componentName);
|
|
1005
|
-
|
|
1005
|
+
const importPath = config.aliases.components || "@/components";
|
|
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
|
+
}
|
|
1006
1013
|
}
|
|
1007
1014
|
if (component.dependencies?.length) {
|
|
1008
1015
|
allDependencies.push(...component.dependencies);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metacells/mcellui-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "CLI for mcellui - add beautiful, accessible UI components to your Expo/React Native project",
|
|
5
5
|
"author": "metacells",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"lint": "eslint src/"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"commander": "^12.0.0",
|
|
53
52
|
"chalk": "^5.3.0",
|
|
53
|
+
"commander": "^12.0.0",
|
|
54
|
+
"detect-indent": "^7.0.1",
|
|
54
55
|
"diff": "^7.0.0",
|
|
55
|
-
"ora": "^8.0.0",
|
|
56
|
-
"prompts": "^2.4.2",
|
|
57
56
|
"fs-extra": "^11.2.0",
|
|
58
57
|
"glob": "^10.3.0",
|
|
59
|
-
"detect-indent": "^7.0.1",
|
|
60
58
|
"jiti": "^1.21.0",
|
|
59
|
+
"ora": "^8.0.0",
|
|
60
|
+
"prompts": "^2.4.2",
|
|
61
61
|
"zod": "^3.23.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|