zc-ui-library 0.0.7 → 0.1.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zc-ui-library",
3
3
  "private": false,
4
- "version": "0.0.7",
4
+ "version": "0.1.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -11,7 +11,9 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "^19.2.0",
14
- "react-dom": "^19.2.0"
14
+ "react-dom": "^19.2.0",
15
+ "tailwindcss": "^4.1.18",
16
+ "vite-plugin-dts": "^4.5.4"
15
17
  },
16
18
  "devDependencies": {
17
19
  "@eslint/js": "^9.39.1",
@@ -1,4 +1,4 @@
1
- import * as React from 'react'
1
+ import * as React from "react";
2
2
 
3
3
  export type ButtonVariant = 'primary' | 'secondary'
4
4
  export type ButtonSize = 'sm' | 'md' | 'lg'
@@ -6,6 +6,7 @@
6
6
  "module": "ESNext",
7
7
  "types": ["node"],
8
8
  "skipLibCheck": true,
9
+ "allowJs": true,
9
10
 
10
11
  /* Bundler mode */
11
12
  "moduleResolution": "bundler",
@@ -22,5 +23,5 @@
22
23
  "noFallthroughCasesInSwitch": true,
23
24
  "noUncheckedSideEffectImports": true
24
25
  },
25
- "include": ["vite.config.ts"]
26
+ "include": ["vite.config.js"]
26
27
  }
package/vite.config.js ADDED
@@ -0,0 +1,26 @@
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+ import dts from 'vite-plugin-dts'
4
+ import {resolve} from "path";
5
+
6
+ export default defineConfig({
7
+ plugins: [
8
+ react(),
9
+ dts({
10
+ entryRoot: 'src',
11
+ insertTypesEntry: true,
12
+ }),
13
+ ],
14
+ build: {
15
+ lib: {
16
+ entry: resolve(__dirname, 'src/index.ts'),
17
+ name: 'zc-ui-library',
18
+ formats: ['es', 'cjs'],
19
+ fileName: (format) =>
20
+ format === 'es' ? 'index.js' : 'index.cjs',
21
+ },
22
+ rollupOptions: {
23
+ external: ['react', 'react-dom'],
24
+ },
25
+ },
26
+ })
package/vite.config.ts DELETED
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vite.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- })