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 2424 "test" : " cypress open --component" ,
2525 "test:run" : " cypress run --component -b chrome" ,
2626 "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* "
2828 },
2929 "peerDependencies" : {
3030 "react" : " ^18 || ^19" ,
8282 "import" : " ./dist/index.mjs" ,
8383 "require" : " ./dist/index.js"
8484 },
85+ "./unstyled" : {
86+ "types" : " ./dist/unstyled.d.ts" ,
87+ "import" : " ./dist/unstyled.mjs" ,
88+ "require" : " ./dist/unstyled.js"
89+ },
8590 "./dist/ReactToastify.css" : " ./dist/ReactToastify.css" ,
8691 "./ReactToastify.css" : " ./dist/ReactToastify.css" ,
8792 "./package.json" : " ./package.json" ,
Original file line number Diff line number Diff line change @@ -43,11 +43,17 @@ export default defineConfig([
4343 external : [ 'react' ] ,
4444 clean : [ 'dist' ]
4545 } ,
46+ {
47+ ...baseConfig ,
48+ injectStyle : false ,
49+ entry : { unstyled : 'src/index.ts' } ,
50+ external : [ 'react' ] ,
51+ clean : [ 'dist' ]
52+ } ,
4653 {
4754 ...baseConfig ,
4855 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'
5157 } ,
5258 external : [ 'react' , 'react-toastify' ] ,
5359 clean : [ 'addons' ] ,
You can’t perform that action at this time.
0 commit comments