File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 24
24
"test" : " cypress open --component" ,
25
25
"test:run" : " cypress run --component -b chrome" ,
26
26
"prettier" : " prettier --write src" ,
27
- "build" : " tsup && cp src/style.css dist/ReactToastify.css"
27
+ "build" : " tsup && cp src/style.css dist/ReactToastify.css && rm dist/unstyled.css* "
28
28
},
29
29
"peerDependencies" : {
30
30
"react" : " ^18 || ^19" ,
82
82
"import" : " ./dist/index.mjs" ,
83
83
"require" : " ./dist/index.js"
84
84
},
85
+ "./unstyled" : {
86
+ "types" : " ./dist/unstyled.d.ts" ,
87
+ "import" : " ./dist/unstyled.mjs" ,
88
+ "require" : " ./dist/unstyled.js"
89
+ },
85
90
"./dist/ReactToastify.css" : " ./dist/ReactToastify.css" ,
86
91
"./ReactToastify.css" : " ./dist/ReactToastify.css" ,
87
92
"./package.json" : " ./package.json" ,
Original file line number Diff line number Diff line change @@ -43,11 +43,17 @@ export default defineConfig([
43
43
external : [ 'react' ] ,
44
44
clean : [ 'dist' ]
45
45
} ,
46
+ {
47
+ ...baseConfig ,
48
+ injectStyle : false ,
49
+ entry : { unstyled : 'src/index.ts' } ,
50
+ external : [ 'react' ] ,
51
+ clean : [ 'dist' ]
52
+ } ,
46
53
{
47
54
...baseConfig ,
48
55
entry : {
49
- 'use-notification-center/index' :
50
- 'src/addons/use-notification-center/index.ts'
56
+ 'use-notification-center/index' : 'src/addons/use-notification-center/index.ts'
51
57
} ,
52
58
external : [ 'react' , 'react-toastify' ] ,
53
59
clean : [ 'addons' ] ,
You can’t perform that action at this time.
0 commit comments