@pauldvlp/vp-pkg-shadcn 0.5.3 → 0.6.1

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 CHANGED
@@ -16,8 +16,8 @@ var RENAME = {
16
16
  };
17
17
  var DEFAULT_PRESET = "b30557okNu";
18
18
  var ICON_LIBS = {
19
- hugeicons: { "@hugeicons/react": "^1.1.9", "@hugeicons/core-free-icons": "^4.2.1" },
20
- lucide: { "lucide-react": "^0" },
19
+ hugeicons: { "@hugeicons/react": "^1.1.9", "@hugeicons/core-free-icons": "^4.2.2" },
20
+ lucide: { "lucide-react": "^1" },
21
21
  radix: { "@radix-ui/react-icons": "^1" },
22
22
  tabler: { "@tabler/icons-react": "^3" }
23
23
  };
@@ -25,8 +25,8 @@ var CATALOG = {
25
25
  "@types/node": "^24",
26
26
  typescript: "^5",
27
27
  vite: "npm:@voidzero-dev/vite-plus-core@latest",
28
- vitest: "4.1.9",
29
- "vite-plus": "^0.2.1",
28
+ vitest: "4.1.10",
29
+ "vite-plus": "^0.2.4",
30
30
  "babel-plugin-react-compiler": "^1.0.0",
31
31
  "@rolldown/plugin-babel": "^0.2.3"
32
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pauldvlp/vp-pkg-shadcn",
3
- "version": "0.5.3",
3
+ "version": "0.6.1",
4
4
  "description": "Add a shared, fully customizable shadcn UI package (packages/ui) into an existing Vite+ monorepo, themeable via shadcn presets.",
5
5
  "author": "pauldvlp (https://github.com/pauldvlp/vp-templates)",
6
6
  "license": "MIT",
@@ -24,11 +24,11 @@
24
24
  "template"
25
25
  ],
26
26
  "dependencies": {
27
- "@clack/prompts": "^1.6.0"
27
+ "@clack/prompts": "^1.7.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^24",
31
- "esbuild": "^0.25.0",
31
+ "esbuild": "^0.28.0",
32
32
  "typescript": "^5",
33
33
  "@pauldvlp/template-kit": "0.0.0"
34
34
  },
@@ -11,14 +11,16 @@
11
11
  },
12
12
  "scripts": {
13
13
  "lint": "vp lint",
14
- "check": "vp check"
14
+ "check": "vp check",
15
+ "test": "vp test",
16
+ "ready": "vp check && vp test"
15
17
  },
16
18
  "dependencies": {
17
19
  "@fontsource-variable/outfit": "^5.2.8",
18
20
  "@fontsource-variable/space-grotesk": "^5.2.10",
19
21
  "class-variance-authority": "^0.7.1",
20
22
  "clsx": "^2.1.1",
21
- "shadcn": "^4.11.0",
23
+ "shadcn": "^4.13.0",
22
24
  "tailwind-merge": "^3.6.0",
23
25
  "tw-animate-css": "^1.4.0"
24
26
  },
@@ -26,7 +28,7 @@
26
28
  "@tailwindcss/vite": "^4",
27
29
  "@types/react": "^19.2.17",
28
30
  "@types/react-dom": "^19.2.3",
29
- "@vitejs/plugin-react": "^6.0.2",
31
+ "@vitejs/plugin-react": "^6.0.3",
30
32
  "react": "^19.2.7",
31
33
  "react-dom": "^19.2.7",
32
34
  "tailwindcss": "^4",
@@ -0,0 +1,20 @@
1
+ import { describe, expect, it } from 'vite-plus/test'
2
+
3
+ import { cn } from './utils'
4
+
5
+ // Infra-free smoke test over the `cn` helper shadcn generates in `lib/utils.ts` (clsx + tailwind-merge).
6
+ // Every shadcn component composes classes through it, so keeping it honest here catches drift in
7
+ // `clsx` / `tailwind-merge` before it reaches the components that depend on it.
8
+ describe('cn', () => {
9
+ it('joins class names', () => {
10
+ expect(cn('px-2', 'text-sm')).toBe('px-2 text-sm')
11
+ })
12
+
13
+ it('drops falsy values (clsx)', () => {
14
+ expect(cn('px-2', false, null, undefined, 'text-sm')).toBe('px-2 text-sm')
15
+ })
16
+
17
+ it('de-duplicates conflicting tailwind utilities, last wins (tailwind-merge)', () => {
18
+ expect(cn('px-2', 'px-4')).toBe('px-4')
19
+ })
20
+ })
File without changes