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
62
62
`import { ThemeProvider } from 'next-themes';` -->
63
63
64
64
``` tsx
65
- import ThemeEditor from " shadcn-theme-editor" ;
65
+ import ShadcnThemeEditor from " shadcn-theme-editor" ;
66
66
```
67
67
68
68
or (in this way, it doesn't include the component in the production build)
@@ -82,7 +82,7 @@ if (process.env.NODE_ENV === 'development') {
82
82
and use
83
83
84
84
``` tsx
85
- <ThemeEditor />
85
+ <ShadcnThemeEditor />
86
86
```
87
87
88
88
</br >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " shadcn-theme-editor" ,
3
- "version" : " 1.4.0-alpha.1 " ,
3
+ "version" : " 1.4.0-alpha.2 " ,
4
4
"description" : " Shadcn Theme Editor" ,
5
5
"module" : " dist/index.mjs" ,
6
6
"types" : " dist/index.d.ts" ,
58
58
"rollup-plugin-preserve-directives" : " ^0.4.0" ,
59
59
"tailwindcss" : " ^3.4.9" ,
60
60
"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"
62
66
},
63
67
"dependencies" : {
64
68
"@radix-ui/react-slot" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ export default [
22
22
{
23
23
input : "src/index.ts" ,
24
24
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
+ } ,
30
30
{
31
31
file : packageJson . module ,
32
32
format : "esm" ,
33
- // sourcemap: true,
33
+ sourcemap : true ,
34
34
} ,
35
+
35
36
] ,
36
37
plugins : [
37
38
peerDepsExternal ( ) ,
@@ -56,8 +57,8 @@ export default [
56
57
} ,
57
58
{
58
59
input : "src/index.ts" ,
59
- output : [ { file : "dist/index.d.ts" } ] ,
60
+ output : [ { file : packageJson . types } ] ,
60
61
plugins : [ dts . default ( ) ] ,
61
62
external : [ / \. c s s $ / ] ,
62
63
} ,
63
- ] ;
64
+ ] ;
You can’t perform that action at this time.
0 commit comments