solidui-cli 0.6.2 → 0.6.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 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -607,8 +607,8 @@ var configSchema = object({
|
|
|
607
607
|
// src/lib/utils.ts
|
|
608
608
|
import { execSync } from "child_process";
|
|
609
609
|
import { readFile } from "fs";
|
|
610
|
+
import { detect } from "@antfu/ni";
|
|
610
611
|
import { log, spinner } from "@clack/prompts";
|
|
611
|
-
import { detect } from "detect-package-manager";
|
|
612
612
|
import JSON5 from "json5";
|
|
613
613
|
function readJsonFile(filePath, callback) {
|
|
614
614
|
readFile(filePath, "utf8", (err, data) => {
|
|
@@ -639,10 +639,13 @@ function removeExtension(value) {
|
|
|
639
639
|
return splitWords[0];
|
|
640
640
|
}
|
|
641
641
|
async function installPackages(...packages) {
|
|
642
|
-
const packageManager = await detect();
|
|
642
|
+
const packageManager = await detect({ programmatic: true });
|
|
643
643
|
switch (packageManager) {
|
|
644
|
-
case "
|
|
644
|
+
case "bun":
|
|
645
645
|
case "pnpm":
|
|
646
|
+
case "pnpm@6":
|
|
647
|
+
case "yarn":
|
|
648
|
+
case "yarn@berry":
|
|
646
649
|
runCommand(`${packageManager} add ${packages.join(" ")}`, "Installing dependencies");
|
|
647
650
|
break;
|
|
648
651
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solidui-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Add Solid UI Components to your application using the Solid-UI CLI tool",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"shadcn"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@antfu/ni": "^0.21.12",
|
|
37
38
|
"@babel/core": "^7.22.20",
|
|
38
39
|
"@babel/parser": "^7.22.16",
|
|
39
40
|
"@babel/plugin-transform-typescript": "^7.22.15",
|
|
@@ -42,7 +43,6 @@
|
|
|
42
43
|
"@types/babel__core": "^7.20.2",
|
|
43
44
|
"chalk": "^5.3.0",
|
|
44
45
|
"commander": "^11.0.0",
|
|
45
|
-
"detect-package-manager": "^3.0.1",
|
|
46
46
|
"json5": "^2.2.3",
|
|
47
47
|
"prompts": "^2.4.2",
|
|
48
48
|
"recast": "^0.23.4",
|