@srcroot/ui 0.0.22 → 0.0.23
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 +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -969,6 +969,7 @@ async function add(components, options) {
|
|
|
969
969
|
name: "items",
|
|
970
970
|
message: "Which components would you like to add?",
|
|
971
971
|
hint: "Space to select. A to toggle all. Enter to submit.",
|
|
972
|
+
instructions: false,
|
|
972
973
|
choices: Object.keys(REGISTRY).map((name) => ({
|
|
973
974
|
title: name,
|
|
974
975
|
value: name
|
|
@@ -1055,11 +1056,14 @@ async function add(components, options) {
|
|
|
1055
1056
|
const content = await fs2.readFile(registryPath, "utf-8");
|
|
1056
1057
|
await fs2.writeFile(targetPath, content);
|
|
1057
1058
|
if (componentsToAdd.length > 10) {
|
|
1058
|
-
spinner.text = `
|
|
1059
|
+
spinner.text = `Adding ${chalk2.cyan(comp.file)}...`;
|
|
1059
1060
|
} else {
|
|
1060
1061
|
spinner.succeed(`Added ${chalk2.cyan(comp.file)}`);
|
|
1061
1062
|
}
|
|
1062
1063
|
}
|
|
1064
|
+
if (componentsToAdd.length > 10) {
|
|
1065
|
+
spinner.succeed(`Added ${componentsToAdd.length} components`);
|
|
1066
|
+
}
|
|
1063
1067
|
console.log(chalk2.green("\n\u2705 Components added successfully!\n"));
|
|
1064
1068
|
} catch (error) {
|
|
1065
1069
|
spinner.fail("Failed to add components");
|