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