@srcroot/ui 0.0.12 → 0.0.14
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 +15 -6
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -578,13 +578,22 @@ async function init(options) {
|
|
|
578
578
|
spinner.text = `Installing dependencies via ${packageManager}: ${missing.join(", ")}...`;
|
|
579
579
|
try {
|
|
580
580
|
const { execSync } = await import("child_process");
|
|
581
|
-
execSync(`${packageManager} ${installCmd} ${missing.join(" ")}`, {
|
|
581
|
+
execSync(`${packageManager} ${installCmd} ${missing.join(" ")}`, {
|
|
582
|
+
stdio: "pipe",
|
|
583
|
+
cwd
|
|
584
|
+
});
|
|
582
585
|
spinner.succeed("Dependencies installed");
|
|
583
|
-
} catch {
|
|
586
|
+
} catch (error) {
|
|
584
587
|
spinner.fail("Failed to install dependencies automatically");
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
if (error.stdout) {
|
|
589
|
+
console.log(chalk.dim("\\n=== stdout ==="));
|
|
590
|
+
console.log(chalk.dim(error.stdout.toString()));
|
|
591
|
+
}
|
|
592
|
+
if (error.stderr) {
|
|
593
|
+
console.log(chalk.red("\\n=== stderr ==="));
|
|
594
|
+
console.error(chalk.red(error.stderr.toString()));
|
|
595
|
+
}
|
|
596
|
+
console.log(chalk.dim(`\\nPlease manually run: ${packageManager} ${installCmd} ${missing.join(" ")}\\n`));
|
|
588
597
|
}
|
|
589
598
|
} else {
|
|
590
599
|
spinner.succeed("All dependencies already installed");
|
|
@@ -1035,7 +1044,7 @@ async function add(components, options) {
|
|
|
1035
1044
|
spinner.info(`${chalk2.cyan(comp.file)} already exists, skipping (use --overwrite to replace)`);
|
|
1036
1045
|
continue;
|
|
1037
1046
|
}
|
|
1038
|
-
const registryPath = path2.resolve(__dirname3, "..", "
|
|
1047
|
+
const registryPath = path2.resolve(__dirname3, "..", "registry", comp.file);
|
|
1039
1048
|
if (!fs2.existsSync(registryPath)) {
|
|
1040
1049
|
spinner.warn(`Registry file not found for ${name}: ${registryPath}`);
|
|
1041
1050
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srcroot/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "A shadcn-style CLI UI library with polymorphic, accessible React components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
"accessible"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"commander": "^12.1.0",
|
|
27
26
|
"chalk": "^5.3.0",
|
|
27
|
+
"commander": "^12.1.0",
|
|
28
28
|
"fs-extra": "^11.2.0",
|
|
29
29
|
"ora": "^8.1.1",
|
|
30
|
-
"prompts": "^2.4.2"
|
|
30
|
+
"prompts": "^2.4.2",
|
|
31
|
+
"tailwindcss-animate": "^1.0.7"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -37,12 +38,12 @@
|
|
|
37
38
|
"typescript": "^5.7.2"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
42
|
-
"lucide-react": "^0.561.0",
|
|
43
|
-
"cmdk": "^1.0.0",
|
|
44
41
|
"class-variance-authority": "^0.7.1",
|
|
45
42
|
"clsx": "^2.1.1",
|
|
43
|
+
"cmdk": "^1.0.0",
|
|
44
|
+
"lucide-react": "0.561.0",
|
|
45
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
46
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
46
47
|
"tailwind-merge": "^3.4.0",
|
|
47
48
|
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
48
49
|
},
|