Skip to content

Commit

Permalink
Merge pull request #44 from tuzkituan:main
Browse files Browse the repository at this point in the history
1.2.1
  • Loading branch information
lewisnguyen2804 authored Jan 24, 2024
2 parents b8b65ee + 518732b commit 8063401
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeni-ui",
"private": false,
"version": "1.2.0-beta",
"version": "1.2.1-beta",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down Expand Up @@ -72,4 +72,4 @@
"@tailwindcss/forms": "^0.5.7",
"iconsax-react": "^0.0.8"
}
}
}
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { extname, relative, resolve } from "path";
import dts from "vite-plugin-dts";
import { fileURLToPath } from "node:url";
import { glob } from "glob";
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'

import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -22,10 +21,11 @@ export default defineConfig({
copyPublicDir: false,
lib: {
entry: resolve(__dirname, "lib/main.ts"),
formats: ["es"],
formats: ["es", "cjs"],
name: "ZENI-UI",
},
rollupOptions: {
external: ["react", "react/jsx-runtime"],
external: ["react", "react-dom", "react/jsx-runtime", "tailwindcss"],
input: Object.fromEntries(
glob.sync("lib/**/!(*.d).{ts,tsx}").map((file) => [
// The name of the entry point
Expand Down

0 comments on commit 8063401

Please sign in to comment.