cus-base-ui 0.2.4 → 0.2.5

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/README.md CHANGED
@@ -26,6 +26,7 @@ Lệnh này tự động thực hiện:
26
26
  | Bước | Nội dung |
27
27
  |------|----------|
28
28
  | Cài dev packages | `tailwindcss`, `@tailwindcss/vite`, `@vitejs/plugin-react`, `vite-plugin-babel`, `babel-plugin-react-compiler`, `@types/node` |
29
+ | Cài runtime packages | `@base-ui/react`, `tailwind-variants`, `clsx`, `tailwind-merge`, `tailwindcss-animate` |
29
30
  | Tạo / cập nhật `vite.config.ts` | Thêm plugin Tailwind, React, React Compiler + alias `@`, `@lib`, `@components`, `@assets`, `@pages`, `@styles` |
30
31
  | Cập nhật `tsconfig.json` | Thêm `baseUrl` + `paths` tương ứng với alias trên |
31
32
  | Setup Tailwind CSS | Thêm `@import "tailwindcss";` vào `src/index.css` (tạo mới nếu chưa có) |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cus-base-ui",
3
3
  "private": false,
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "cus-base-ui": "./dist/ui-cli.cjs"
package/scripts/ui-cli.ts CHANGED
@@ -81,6 +81,9 @@ const installNpmPackages = (packages: string[], cwd: string, dev = false) => {
81
81
 
82
82
  const VITE_DEV_PACKAGES = ['tailwindcss', '@tailwindcss/vite', '@vitejs/plugin-react', 'vite-plugin-babel', 'babel-plugin-react-compiler', '@types/node'];
83
83
 
84
+ // Runtime packages always required — installed regardless of registry content
85
+ const RUNTIME_PACKAGES = ['@base-ui/react', 'tailwind-variants', 'clsx', 'tailwind-merge', 'tailwindcss-animate'];
86
+
84
87
  const VITE_CONFIG_TEMPLATE = `import { defineConfig } from 'vite';
85
88
  import tailwindcss from '@tailwindcss/vite';
86
89
  import react from '@vitejs/plugin-react';
@@ -390,6 +393,7 @@ const main = async () => {
390
393
  setupViteConfig(cwd);
391
394
  setupTsConfig(cwd);
392
395
  ensureTailwindCss(cwd);
396
+ installNpmPackages(RUNTIME_PACKAGES, cwd);
393
397
  ensureCore(registry, cwd);
394
398
  log('Initialization complete.');
395
399
  break;