solidui-cli 0.7.1 → 0.7.2
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 +12 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -727,7 +727,8 @@ var add = new Command().name("add").description("add components to your project"
|
|
|
727
727
|
{
|
|
728
728
|
components: () => p2.multiselect({
|
|
729
729
|
message: `Which ${highlight("components")} would you like to add?`,
|
|
730
|
-
options: registryIndex.map((v) => ({ label: v.name, value: v.name }))
|
|
730
|
+
options: registryIndex.map((v) => ({ label: v.name, value: v.name })),
|
|
731
|
+
maxItems: 10
|
|
731
732
|
})
|
|
732
733
|
},
|
|
733
734
|
{
|
|
@@ -804,7 +805,11 @@ var add = new Command().name("add").description("add components to your project"
|
|
|
804
805
|
}
|
|
805
806
|
if (item.dependencies?.length) {
|
|
806
807
|
const packageManager = await getPackageManager(cwd);
|
|
807
|
-
await execa(packageManager, [
|
|
808
|
+
await execa(packageManager, [
|
|
809
|
+
"add",
|
|
810
|
+
packageManager === "deno" ? "--npm" : "",
|
|
811
|
+
...item.dependencies
|
|
812
|
+
], { cwd });
|
|
808
813
|
}
|
|
809
814
|
}
|
|
810
815
|
spinner3.stop("Done.");
|
|
@@ -1150,7 +1155,11 @@ var init = new Command2().name("init").description("initialize your project and
|
|
|
1150
1155
|
spinner3.stop(`Project initialized.`);
|
|
1151
1156
|
spinner3.start(`Installing dependencies...`);
|
|
1152
1157
|
const packageManager = await getPackageManager(cwd);
|
|
1153
|
-
await execa2(packageManager, [
|
|
1158
|
+
await execa2(packageManager, [
|
|
1159
|
+
"add",
|
|
1160
|
+
packageManager === "deno" ? "--npm" : "",
|
|
1161
|
+
...PROJECT_DEPENDENCIES
|
|
1162
|
+
], { cwd });
|
|
1154
1163
|
spinner3.stop(`Dependencies installed.`);
|
|
1155
1164
|
p3.outro(
|
|
1156
1165
|
`${highlight("Success!")} Project initialization completed. You may now add components.`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solidui-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Add Solid UI Components to your application using the Solid-UI CLI tool",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@babel/core": "^7.25.2",
|
|
41
41
|
"@babel/parser": "^7.25.6",
|
|
42
42
|
"@babel/plugin-transform-typescript": "^7.25.2",
|
|
43
|
-
"@clack/prompts": "^0.
|
|
44
|
-
"chalk": "^5.
|
|
43
|
+
"@clack/prompts": "^0.10.0",
|
|
44
|
+
"chalk": "^5.4.1",
|
|
45
45
|
"commander": "^12.1.0",
|
|
46
46
|
"execa": "^9.4.0",
|
|
47
47
|
"recast": "^0.23.9",
|
|
48
|
-
"ts-morph": "^
|
|
48
|
+
"ts-morph": "^20.0.0",
|
|
49
49
|
"tsconfig-paths": "^4.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|