File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pnpm add shadcn-theme-editor --save-dev
6262`import { ThemeProvider } from 'next-themes';` -->
6363
6464``` tsx
65- import ThemeEditor from " shadcn-theme-editor" ;
65+ import ShadcnThemeEditor from " shadcn-theme-editor" ;
6666```
6767
6868or (in this way, it doesn't include the component in the production build)
@@ -82,7 +82,7 @@ if (process.env.NODE_ENV === 'development') {
8282and use
8383
8484``` tsx
85- <ThemeEditor />
85+ <ShadcnThemeEditor />
8686```
8787
8888</br >
Original file line number Diff line number Diff line change 11{
22 "name" : " shadcn-theme-editor" ,
3- "version" : " 1.4.0-alpha.1 " ,
3+ "version" : " 1.4.0-alpha.2 " ,
44 "description" : " Shadcn Theme Editor" ,
55 "module" : " dist/index.mjs" ,
66 "types" : " dist/index.d.ts" ,
5858 "rollup-plugin-preserve-directives" : " ^0.4.0" ,
5959 "tailwindcss" : " ^3.4.9" ,
6060 "tslib" : " ^2.6.3" ,
61- "typescript" : " ^5.5.3"
61+ "typescript" : " ^5.5.3" ,
62+ "class-variance-authority" : " ^0.7.0" ,
63+ "clsx" : " ^2.1.1" ,
64+ "next-themes" : " ^0.3.0" ,
65+ "react" : " ^18.3.1"
6266 },
6367 "dependencies" : {
6468 "@radix-ui/react-slot" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ export default [
2222 {
2323 input : "src/index.ts" ,
2424 output : [
25- // {
26- // file: packageJson.main,
27- // format: "cjs",
28- // sourcemap: true,
29- // },
25+ {
26+ file : packageJson . main ,
27+ format : "cjs" ,
28+ sourcemap : true ,
29+ } ,
3030 {
3131 file : packageJson . module ,
3232 format : "esm" ,
33- // sourcemap: true,
33+ sourcemap : true ,
3434 } ,
35+
3536 ] ,
3637 plugins : [
3738 peerDepsExternal ( ) ,
@@ -56,8 +57,8 @@ export default [
5657 } ,
5758 {
5859 input : "src/index.ts" ,
59- output : [ { file : "dist/index.d.ts" } ] ,
60+ output : [ { file : packageJson . types } ] ,
6061 plugins : [ dts . default ( ) ] ,
6162 external : [ / \. c s s $ / ] ,
6263 } ,
63- ] ;
64+ ] ;
You can’t perform that action at this time.
0 commit comments