1
1
{
2
2
"version" : " 10.0.6" ,
3
3
"license" : " MIT" ,
4
- "typings" : " dist/index.d.ts" ,
5
4
"description" : " React notification made easy" ,
6
5
"keywords" : [
7
6
" react" ,
14
13
],
15
14
"files" : [
16
15
" dist" ,
17
- " addons" ,
18
- " scss"
16
+ " addons"
19
17
],
20
- "sideEffects" : true ,
21
18
"scripts" : {
22
- "start" : " cd playground && yarn dev" ,
19
+ "setup" : " pnpm link ." ,
20
+ "start" : " cd playground && pnpm dev" ,
23
21
"test" : " cypress open --component" ,
24
22
"test:run" : " cypress run --component -b chrome" ,
25
- "clean" : " rimraf dist && rimraf addons" ,
26
23
"lint" : " eslint \" src/**/*.{ts,tsx}\" " ,
27
24
"prettier" : " prettier --write src" ,
28
- "prettier-scss" : " prettier --write scss" ,
29
- "sass" : " sass scss/main.scss dist/ReactToastify.css" ,
30
- "sass-minimal" : " sass scss/minimal.scss dist/ReactToastify.minimal.css" ,
31
- "postsass" : " postcss dist/ReactToastify.css --use autoprefixer -m -o dist/ReactToastify.css" ,
32
- "postsass-minimal" : " cssnano dist/ReactToastify.minimal.css dist/ReactToastify.minimal.css --no-zindex --no-reduceIdents" ,
33
- "style" : " npm run sass && npm run sass-minimal && cssnano dist/ReactToastify.css dist/ReactToastify.min.css --no-zindex --no-reduceIdents && npm run style-injector" ,
34
- "style-injector" : " style2js --out-dir dist dist/ReactToastify.min.css" ,
35
- "build" : " npm run clean && npm run build:core && npm run pack-and-extract && npm run build:addons && npm run style && husky install" ,
36
- "build:core" : " microbundle --jsx React.createElement --jsxFragment React.Fragment --tsconfig tsconfig.build.json" ,
37
- "build:addons" : " node build-addons.mjs" ,
38
- "postbuild" : " ./prepend-use-client.sh" ,
39
- "setup" : " npm run clean && npm run build && npm run pack-and-extract" ,
40
- "setup:core" : " npm run clean && npm run build:core && npm run pack-and-extract" ,
41
- "pack-and-extract" : " yarn pack -f react-toastify.tgz && npm run rm-pkg && npm run extract-pkg" ,
42
- "rm-pkg" : " rimraf node_modules/react-toastify && mkdir -p node_modules/react-toastify" ,
43
- "extract-pkg" : " tar xzvf react-toastify.tgz -C node_modules/react-toastify --strip-components 1 && rimraf react-toastify.tgz"
25
+ "build" : " tsup && cp src/style.css dist/ReactToastify.css"
44
26
},
45
27
"peerDependencies" : {
46
- "react" : " >=18" ,
47
- "react-dom" : " >=18"
28
+ "react" : " >=18.0.0 " ,
29
+ "react-dom" : " >=18.0.0 "
48
30
},
49
31
"prettier" : {
50
- "printWidth" : 80 ,
32
+ "printWidth" : 120 ,
51
33
"semi" : true ,
52
34
"singleQuote" : true ,
53
35
"trailingComma" : " none" ,
58
40
"type" : " git" ,
59
41
"url" : " git+https://github.com/fkhadra/react-toastify.git"
60
42
},
61
- "author" :
" Fadi Khadra <[email protected] > (https://fkhadra.github.io)" ,
43
+ "author" :
" Fadi Khadra <[email protected] > (https://fkhadra.github.io)" ,
62
44
"bugs" : {
63
45
"url" : " https://github.com/fkhadra/react-toastify/issues"
64
46
},
68
50
"@cypress/code-coverage" : " ^3.12.18" ,
69
51
"@istanbuljs/nyc-config-typescript" : " ^1.0.2" ,
70
52
"@testing-library/cypress" : " ^10.0.1" ,
53
+ "@types/node" : " ^22.9.3" ,
71
54
"@types/react" : " ^18.2.47" ,
72
55
"@types/react-dom" : " ^18.2.18" ,
73
- "@typescript-eslint/eslint-plugin" : " ^6.18.1" ,
74
- "@typescript-eslint/parser" : " ^6.18.1" ,
75
56
"@vitejs/plugin-react" : " ^4.2.1" ,
76
57
"coveralls" : " ^3.0.9" ,
77
- "cssnano" : " ^6.0.3" ,
78
- "cssnano-cli" : " ^1.0.5" ,
79
58
"cypress" : " ^13.6.2" ,
80
- "eslint" : " ^8.56.0" ,
81
- "eslint-plugin-import" : " ^2.29.1" ,
82
- "eslint-plugin-jsx-a11y" : " ^6.8.0" ,
83
- "eslint-plugin-react" : " ^7.32.2" ,
84
- "eslint-plugin-react-hooks" : " ^4.4.0" ,
85
- "husky" : " ^8.0.3" ,
86
- "microbundle" : " ^0.15.1" ,
87
59
"postcss" : " ^8.4.33" ,
88
- "postcss-cli" : " ^11.0.0" ,
89
60
"prettier" : " 3.2.2" ,
90
61
"react" : " ^18.0.0" ,
91
62
"react-dom" : " ^18.0.0" ,
92
- "rimraf" : " ^5.0.0" ,
93
- "sass" : " ^1.69.7" ,
94
- "style2js" : " ^1.0.3" ,
95
- "ts-jest" : " ^29.1.0" ,
96
- "tslib" : " ^2.5.0" ,
63
+ "tsup" : " ^8.3.5" ,
97
64
"typescript" : " ^5.3.3" ,
98
65
"vite" : " ^5.0.11" ,
99
66
"vite-plugin-istanbul" : " ^5.0.0"
100
67
},
101
68
"dependencies" : {
102
69
"clsx" : " ^2.1.0"
103
70
},
104
- "main" : " dist/react-toastify.js" ,
105
- "module" : " dist/react-toastify.esm.mjs" ,
106
- "umd:main" : " dist/react-toastify.umd.js" ,
107
- "unpkg" : " dist/react-toastify.umd.js" ,
71
+ "main" : " dist/index.js" ,
72
+ "typings" : " dist/index.d.ts" ,
73
+ "module" : " dist/index.mjs" ,
108
74
"source" : " src/index.ts" ,
109
75
"exports" : {
110
76
"." : {
111
77
"types" : " ./dist/index.d.ts" ,
112
- "require" : " ./dist/react-toastify.js" ,
113
- "import" : " ./dist/react-toastify.esm.mjs" ,
114
- "umd" : " ./dist/react-toastify.umd.js"
78
+ "import" : " ./dist/index.mjs" ,
79
+ "require" : " ./dist/index.js"
115
80
},
116
- "./dist/ReactToastify.min.css" : " ./dist/ReactToastify.min.css" ,
117
81
"./dist/ReactToastify.css" : " ./dist/ReactToastify.css" ,
118
- "./dist/ReactToastify.css.map" : " ./dist/ReactToastify.css.map" ,
119
- "./dist/ReactToastify.minimal.css" : " ./dist/ReactToastify.minimal.css" ,
120
- "./ReactToastify.min.css" : " ./dist/ReactToastify.min.css" ,
121
82
"./ReactToastify.css" : " ./dist/ReactToastify.css" ,
122
- "./ReactToastify.css.map" : " ./dist/ReactToastify.css.map" ,
123
- "./ReactToastify.minimal.css" : " ./dist/ReactToastify.minimal.css" ,
124
- "./dist/inject-style" : {
125
- "types" : " ./dist/inject-style.d.ts" ,
126
- "require" : " ./dist/inject-style.js" ,
127
- "import" : " ./dist/inject-style.esm.mjs"
128
- },
129
- "./inject-style" : {
130
- "types" : " ./dist/inject-style.d.ts" ,
131
- "require" : " ./dist/inject-style.js" ,
132
- "import" : " ./dist/inject-style.esm.mjs"
133
- },
134
83
"./package.json" : " ./package.json" ,
135
- "./scss/" : " ./scss/" ,
136
84
"./addons/use-notification-center" : {
137
85
"types" : " ./addons/use-notification-center/index.d.ts" ,
138
- "require " : " ./addons/use-notification-center/index.js " ,
139
- "import " : " ./addons/use-notification-center/index.esm.mjs "
86
+ "import " : " ./addons/use-notification-center/index.esm.mjs " ,
87
+ "require " : " ./addons/use-notification-center/index.js "
140
88
}
141
89
}
142
- }
90
+ }
0 commit comments