package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "name": "react-dropzone",
  3. "description": "Simple HTML5 drag-drop zone with React.js",
  4. "main": "dist/index.js",
  5. "module": "dist/es/index.js",
  6. "sideEffects": false,
  7. "scripts": {
  8. "cz": "git-cz",
  9. "clean": "rimraf ./dist",
  10. "build": "yarn clean && yarn build:umd && yarn build:es",
  11. "build:umd": "cross-env NODE_ENV=es rollup -c",
  12. "build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
  13. "start": "styleguidist server",
  14. "styleguide": "styleguidist build",
  15. "test": "cross-env NODE_ENV=test yarn lint && jest --coverage && yarn typescript",
  16. "test:watch": "cross-env NODE_ENV=test jest --watch",
  17. "lint": "eslint .",
  18. "lint:fix": "eslint . --fix",
  19. "commitmsg": "commitlint -e",
  20. "prepublish": "yarn build && yarn size",
  21. "_postinstall": "husky install",
  22. "prepublishOnly": "pinst --disable",
  23. "postpublish": "pinst --enable",
  24. "logo": "cd logo && sketchtool export artboards logo.sketch",
  25. "imagemin": "imagemin --out-dir=logo --plugin=pngquant --plugin=svgo",
  26. "size": "size-limit",
  27. "size:why": "size-limit --why",
  28. "typescript": "tsc --project ./typings/tests"
  29. },
  30. "size-limit": [
  31. {
  32. "path": "dist/index.js",
  33. "limit": "8 KB"
  34. },
  35. {
  36. "path": "dist/es/index.js",
  37. "limit": "8 KB"
  38. }
  39. ],
  40. "lint-staged": {
  41. "*.js": [
  42. "eslint . --fix"
  43. ],
  44. "*.ts": [
  45. "eslint ."
  46. ],
  47. "*.{svg,png}": [
  48. "imagemin"
  49. ]
  50. },
  51. "config": {
  52. "commitizen": {
  53. "path": "@commitlint/prompt"
  54. }
  55. },
  56. "jest": {
  57. "testEnvironment": "jsdom",
  58. "clearMocks": true,
  59. "setupFilesAfterEnv": [
  60. "<rootDir>/testSetup.js"
  61. ],
  62. "coveragePathIgnorePatterns": [
  63. "/dist/",
  64. "/node_modules/",
  65. "<rootDir>/testSetup.js"
  66. ],
  67. "testPathIgnorePatterns": [
  68. "/node_modules/",
  69. "/dist/"
  70. ]
  71. },
  72. "keywords": [
  73. "react-component",
  74. "react",
  75. "drag",
  76. "drop",
  77. "upload"
  78. ],
  79. "repository": {
  80. "type": "git",
  81. "url": "https://github.com/react-dropzone/react-dropzone.git"
  82. },
  83. "bugs": {
  84. "url": "https://github.com/react-dropzone/react-dropzone/issues"
  85. },
  86. "homepage": "https://github.com/react-dropzone/react-dropzone",
  87. "author": "Param Aggarwal",
  88. "contributors": [
  89. "Andrey Okonetchnikov <andrey@okonet.ru> (http://okonet.ru)",
  90. "Mike Olson <me@mwolson.org>",
  91. "Param Aggarwal",
  92. "Tyler Waters <tyler.waters@gmail.com>",
  93. "Rick Markins <rmarkins@gmail.com>",
  94. "Roland Groza <rolandjitsu@gmail.com>"
  95. ],
  96. "license": "MIT",
  97. "peerDependencies": {
  98. "react": ">= 16.8 || 18.0.0"
  99. },
  100. "dependencies": {
  101. "attr-accept": "^2.2.2",
  102. "file-selector": "^0.6.0",
  103. "prop-types": "^15.8.1"
  104. },
  105. "devDependencies": {
  106. "@babel/cli": "^7.16.8",
  107. "@babel/core": "^7.16.12",
  108. "@babel/eslint-parser": "^7.16.5",
  109. "@babel/plugin-external-helpers": "^7.16.7",
  110. "@babel/plugin-proposal-do-expressions": "^7.16.7",
  111. "@babel/plugin-proposal-export-default-from": "^7.16.7",
  112. "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
  113. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
  114. "@babel/plugin-proposal-optional-chaining": "^7.16.7",
  115. "@babel/plugin-proposal-pipeline-operator": "^7.16.7",
  116. "@babel/plugin-transform-runtime": "^7.16.10",
  117. "@babel/preset-env": "^7.16.11",
  118. "@babel/preset-react": "^7.16.7",
  119. "@babel/register": "^7.16.9",
  120. "@commitlint/cli": "^16.1.0",
  121. "@commitlint/config-angular": "^16.0.0",
  122. "@commitlint/prompt": "^16.1.0",
  123. "@commitlint/prompt-cli": "^16.1.0",
  124. "@rollup/plugin-babel": "^5.3.0",
  125. "@rollup/plugin-commonjs": "^21.0.1",
  126. "@rollup/plugin-node-resolve": "^13.1.3",
  127. "@size-limit/preset-small-lib": "^7.0.5",
  128. "@size-limit/webpack": "^7.0.5",
  129. "@size-limit/webpack-why": "^7.0.5",
  130. "@testing-library/dom": "^8.11.3",
  131. "@testing-library/jest-dom": "^5.16.1",
  132. "@testing-library/react": "^13.1.1",
  133. "@testing-library/react-hooks": "^8.0.0",
  134. "@types/react": "^17.0.0",
  135. "@types/react-dom": "^17.0.0",
  136. "@typescript-eslint/eslint-plugin": "^5.10.1",
  137. "@typescript-eslint/parser": "^5.10.1",
  138. "babel-jest": "^27.4.6",
  139. "babel-plugin-add-module-exports": "^1.0.4",
  140. "babel-plugin-dynamic-import-node": "^2.3.3",
  141. "commitizen": "^4.2.4",
  142. "cross-env": "^7.0.3",
  143. "eslint": "^8.8.0",
  144. "eslint-config-prettier": "^8.3.0",
  145. "eslint-plugin-import": "^2.25.4",
  146. "eslint-plugin-jsx-a11y": "^6.5.1",
  147. "eslint-plugin-node": "^11.1.0",
  148. "eslint-plugin-prettier": "^4.0.0",
  149. "eslint-plugin-react": "^7.28.0",
  150. "eslint-plugin-react-hooks": "^4.3.0",
  151. "husky": "^7.0.4",
  152. "imagemin-cli": "^7.0.0",
  153. "imagemin-pngquant": "^9.0.2",
  154. "jest": "^27.4.7",
  155. "lint-staged": "^12.3.2",
  156. "markdownlint-cli": "^0.30.0",
  157. "pinst": "^2.1.6",
  158. "prettier": "^2.5.1",
  159. "react": "^18.1.0",
  160. "react-dom": "^18.1.0",
  161. "react-styleguidist": "^11.2.0",
  162. "react-test-renderer": "^18.1.0",
  163. "rimraf": "^3.0.2",
  164. "rollup": "^2.66.1",
  165. "rollup-plugin-terser": "^7.0.2",
  166. "size-limit": "^7.0.5",
  167. "style-loader": "^3.3.1",
  168. "styled-components": "^5.3.3",
  169. "typescript": "^4.0.2",
  170. "webpack": "^5.67.0",
  171. "webpack-blocks": "^2.1.0"
  172. },
  173. "typings": "typings/react-dropzone.d.ts",
  174. "version": "14.2.2",
  175. "engines": {
  176. "node": ">= 10.13"
  177. },
  178. "browserslist": [
  179. "defaults"
  180. ]
  181. }