package.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. {
  2. "version": "9.1.3",
  3. "license": "MIT",
  4. "typings": "dist/index.d.ts",
  5. "description": "React notification made easy",
  6. "keywords": [
  7. "react",
  8. "notification",
  9. "toast",
  10. "react-component",
  11. "react-toastify",
  12. "push",
  13. "alert"
  14. ],
  15. "files": [
  16. "dist",
  17. "addons",
  18. "scss"
  19. ],
  20. "sideEffects": true,
  21. "scripts": {
  22. "start": "cd example && npm run start",
  23. "test": "jest",
  24. "clean": "rimraf dist && rimraf addons",
  25. "test:coverage": "yarn test --coverage",
  26. "lint": "eslint \"src/**/*.{ts,tsx}\"",
  27. "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",
  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. "pack-and-extract": "yarn pack -f react-toastify.tgz && npm run rm-pkg && npm run extract-pkg",
  41. "rm-pkg": "rimraf node_modules/react-toastify && mkdir -p node_modules/react-toastify",
  42. "extract-pkg": "tar xzvf react-toastify.tgz -C node_modules/react-toastify --strip-components 1 && rimraf react-toastify.tgz"
  43. },
  44. "peerDependencies": {
  45. "react": ">=16",
  46. "react-dom": ">=16"
  47. },
  48. "prettier": {
  49. "printWidth": 80,
  50. "semi": true,
  51. "singleQuote": true,
  52. "trailingComma": "none",
  53. "arrowParens": "avoid"
  54. },
  55. "jest": {
  56. "verbose": true,
  57. "coveragePathIgnorePatterns": [
  58. "/dist/*",
  59. "/src/index.tsx"
  60. ],
  61. "roots": [
  62. "<rootDir>/test"
  63. ],
  64. "transform": {
  65. "^.+\\.tsx?$": [
  66. "ts-jest",
  67. {
  68. "isolatedModules": true
  69. }
  70. ]
  71. },
  72. "setupFilesAfterEnv": [
  73. "@testing-library/jest-dom/extend-expect"
  74. ],
  75. "testRegex": "(.+(test|spec))\\.tsx?$",
  76. "testEnvironment": "jsdom",
  77. "testRunner": "jest-jasmine2",
  78. "moduleFileExtensions": [
  79. "ts",
  80. "tsx",
  81. "js",
  82. "jsx",
  83. "json",
  84. "node"
  85. ]
  86. },
  87. "name": "react-toastify",
  88. "repository": {
  89. "type": "git",
  90. "url": "git+https://github.com/fkhadra/react-toastify.git"
  91. },
  92. "author": "Fadi Khadra <fdkhadra@gmail.com> (https://fkhadra.github.io)",
  93. "bugs": {
  94. "url": "https://github.com/fkhadra/react-toastify/issues"
  95. },
  96. "homepage": "https://github.com/fkhadra/react-toastify#readme",
  97. "devDependencies": {
  98. "@testing-library/jest-dom": "^5.16.5",
  99. "@testing-library/react": "^14.0.0",
  100. "@types/jest": "^29.5.1",
  101. "@types/react": "^18.2.6",
  102. "@types/react-dom": "^18.2.4",
  103. "@typescript-eslint/eslint-plugin": "^5.59.5",
  104. "@typescript-eslint/parser": "^5.59.5",
  105. "coveralls": "^3.0.9",
  106. "cssnano": "^6.0.1",
  107. "cssnano-cli": "^1.0.5",
  108. "eslint": "^8.40.0",
  109. "eslint-plugin-import": "^2.27.5",
  110. "eslint-plugin-jsx-a11y": "^6.7.1",
  111. "eslint-plugin-react": "^7.32.2",
  112. "eslint-plugin-react-hooks": "^4.4.0",
  113. "husky": "^8.0.3",
  114. "jest": "^29.5.0",
  115. "jest-environment-jsdom": "^29.5.0",
  116. "jest-jasmine2": "^29.5.0",
  117. "microbundle": "^0.15.1",
  118. "postcss": "^8.4.23",
  119. "postcss-cli": "^10.1.0",
  120. "prettier": "2.8.8",
  121. "react": "^18.0.0",
  122. "react-dom": "^18.0.0",
  123. "rimraf": "^5.0.0",
  124. "sass": "^1.62.1",
  125. "style2js": "^1.0.1",
  126. "ts-jest": "^29.1.0",
  127. "tslib": "^2.5.0",
  128. "typescript": "^5.0.4"
  129. },
  130. "dependencies": {
  131. "clsx": "^1.1.1"
  132. },
  133. "main": "dist/react-toastify.js",
  134. "module": "dist/react-toastify.esm.mjs",
  135. "umd:main": "dist/react-toastify.umd.js",
  136. "unpkg": "dist/react-toastify.umd.js",
  137. "source": "src/index.ts",
  138. "exports": {
  139. ".": {
  140. "types": "./dist/index.d.ts",
  141. "require": "./dist/react-toastify.js",
  142. "import": "./dist/react-toastify.esm.mjs",
  143. "umd": "./dist/react-toastify.umd.js"
  144. },
  145. "./dist/ReactToastify.min.css": "./dist/ReactToastify.min.css",
  146. "./dist/ReactToastify.css": "./dist/ReactToastify.css",
  147. "./dist/ReactToastify.minimal.css": "./dist/ReactToastify.minimal.css",
  148. "./ReactToastify.min.css": "./dist/ReactToastify.min.css",
  149. "./ReactToastify.css": "./dist/ReactToastify.css",
  150. "./ReactToastify.minimal.css": "./dist/ReactToastify.minimal.css",
  151. "./dist/inject-style": {
  152. "types": "./dist/inject-style.d.ts",
  153. "require": "./dist/inject-style.js",
  154. "import": "./dist/inject-style.esm.mjs"
  155. },
  156. "./inject-style": {
  157. "types": "./dist/inject-style.d.ts",
  158. "require": "./dist/inject-style.js",
  159. "import": "./dist/inject-style.esm.mjs"
  160. },
  161. "./package.json": "./package.json",
  162. "./scss/": "./scss/",
  163. "./addons/use-notification-center": {
  164. "types": "./addons/use-notification-center/index.d.ts",
  165. "require": "./addons/use-notification-center/index.js",
  166. "import": "./addons/use-notification-center/index.esm.mjs"
  167. }
  168. }
  169. }