solidui-cli 0.6.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -413,9 +413,7 @@ var ROOT_CSS = `@tailwind base;
413
413
  @apply px-4;
414
414
  }
415
415
  }`;
416
- var TAILWIND_CONFIG = `const {fontFamily} = require("tailwindcss/defaultTheme")
417
-
418
- /**@type {import("tailwindcss").Config} */
416
+ var TAILWIND_CONFIG = `/**@type {import("tailwindcss").Config} */
419
417
  module.exports = {
420
418
  darkMode: ["class", '[data-kb-theme="dark"]'],
421
419
  content: ["./src/**/*.{ts,tsx}"],
@@ -485,9 +483,6 @@ module.exports = {
485
483
  md: "calc(var(--radius) - 2px)",
486
484
  sm: "calc(var(--radius) - 4px)"
487
485
  },
488
- fontFamily: {
489
- sans: ["Inter", ...fontFamily.sans]
490
- },
491
486
  keyframes: {
492
487
  "accordion-down": {
493
488
  from: { height: 0 },
@@ -612,8 +607,8 @@ var configSchema = object({
612
607
  // src/lib/utils.ts
613
608
  import { execSync } from "child_process";
614
609
  import { readFile } from "fs";
610
+ import { detect } from "@antfu/ni";
615
611
  import { log, spinner } from "@clack/prompts";
616
- import { detect } from "detect-package-manager";
617
612
  import JSON5 from "json5";
618
613
  function readJsonFile(filePath, callback) {
619
614
  readFile(filePath, "utf8", (err, data) => {
@@ -644,10 +639,13 @@ function removeExtension(value) {
644
639
  return splitWords[0];
645
640
  }
646
641
  async function installPackages(...packages) {
647
- const packageManager = await detect();
642
+ const packageManager = await detect({ programmatic: true });
648
643
  switch (packageManager) {
649
- case "yarn":
644
+ case "bun":
650
645
  case "pnpm":
646
+ case "pnpm@6":
647
+ case "yarn":
648
+ case "yarn@berry":
651
649
  runCommand(`${packageManager} add ${packages.join(" ")}`, "Installing dependencies");
652
650
  break;
653
651
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solidui-cli",
3
- "version": "0.6.1",
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",