package.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "name": "recharts",
  3. "version": "2.15.4",
  4. "description": "React charts",
  5. "main": "lib/index.js",
  6. "module": "es6/index.js",
  7. "jsnext:main": "es6/index.js",
  8. "types": "types/index.d.ts",
  9. "sideEffects": false,
  10. "files": [
  11. "*.md",
  12. "es6",
  13. "lib",
  14. "umd",
  15. "types"
  16. ],
  17. "keywords": [
  18. "react",
  19. "reactjs",
  20. "chart",
  21. "react-component"
  22. ],
  23. "scripts": {
  24. "prepare": "husky install",
  25. "build": "npm run build-types && npm run build-cjs && npm run build-es6 && npm run build-umd",
  26. "build-cjs": "rimraf lib && cross-env NODE_ENV=commonjs babel ./src -d lib --extensions '.js,.ts,.tsx'",
  27. "build-es6": "rimraf es6 && cross-env NODE_ENV=es6 babel ./src -d es6 --extensions '.js,.ts,.tsx'",
  28. "build-umd": "rimraf umd && cross-env NODE_ENV=production webpack --entry ./src/index.ts -o umd",
  29. "build-types": "rimraf types && npm run tsc",
  30. "demo": "webpack serve --config demo/webpack.config.js --port 3000 --host 127.0.0.1 --progress --profile --static demo/",
  31. "test": "vitest run --config vitest.config.ts",
  32. "test-coverage": "vitest run --config vitest.config.ts --coverage",
  33. "test-watch": "vitest --config vitest.config.ts",
  34. "lint": "eslint \"./src/**/*.{ts,tsx}\"",
  35. "lint-test": "eslint \"./test/**/*.{ts,tsx}\"",
  36. "lint-storybook": "eslint \"./storybook/**/*.{ts,tsx}\"",
  37. "autofix": "eslint \"./src/**/*.{ts,tsx}\" --fix",
  38. "analyse": "cross-env NODE_ENV=analyse webpack ./src/index.ts -o umd/Recharts.js",
  39. "tsc": "tsc",
  40. "storybook": "npx storybook dev -p 6006 -c storybook",
  41. "build-storybook": "npx storybook build -o storybook/public -c storybook",
  42. "chromatic": "npx chromatic",
  43. "test-storybook": "test-storybook --config-dir storybook",
  44. "test-storybook:url": "test-storybook --url http://127.0.0.1:9009 --config-dir storybook",
  45. "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook --quiet && npx http-server storybook/public --port 9009 --silent\" \"wait-on tcp:127.0.0.1:9009 && npm run test-storybook:url --maxWorkers=2\""
  46. },
  47. "lint-staged": {
  48. "*.{ts,tsx,js,jsx}": [
  49. "eslint --fix",
  50. "prettier --write"
  51. ]
  52. },
  53. "repository": {
  54. "type": "git",
  55. "url": "git+https://github.com/recharts/recharts.git"
  56. },
  57. "author": {
  58. "name": "recharts group"
  59. },
  60. "bugs": {
  61. "url": "https://github.com/recharts/recharts/issues"
  62. },
  63. "homepage": "https://github.com/recharts/recharts",
  64. "peerDependencies": {
  65. "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
  66. "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
  67. },
  68. "dependencies": {
  69. "clsx": "^2.0.0",
  70. "eventemitter3": "^4.0.1",
  71. "lodash": "^4.17.21",
  72. "react-is": "^18.3.1",
  73. "react-smooth": "^4.0.4",
  74. "recharts-scale": "^0.4.4",
  75. "tiny-invariant": "^1.3.1",
  76. "victory-vendor": "^36.6.8"
  77. },
  78. "devDependencies": {
  79. "@babel/cli": "^7.23.0",
  80. "@babel/core": "^7.23.2",
  81. "@babel/plugin-proposal-export-default-from": "^7.22.17",
  82. "@babel/plugin-proposal-function-bind": "^7.22.5",
  83. "@babel/plugin-transform-runtime": "^7.23.2",
  84. "@babel/preset-env": "^7.23.2",
  85. "@babel/preset-react": "^7.22.15",
  86. "@babel/preset-typescript": "^7.23.2",
  87. "@babel/runtime": "^7.27.6",
  88. "@storybook/addon-a11y": "^8.1.2",
  89. "@storybook/addon-docs": "^8.1.2",
  90. "@storybook/addon-essentials": "^8.1.2",
  91. "@storybook/addon-interactions": "^8.1.2",
  92. "@storybook/addon-links": "^8.1.2",
  93. "@storybook/addon-mdx-gfm": "^8.1.2",
  94. "@storybook/addon-storysource": "^8.1.2",
  95. "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
  96. "@storybook/manager-api": "^8.1.2",
  97. "@storybook/react": "^8.1.2",
  98. "@storybook/react-webpack5": "^8.1.2",
  99. "@storybook/source-loader": "^8.1.2",
  100. "@storybook/test-runner": "^0.18.0",
  101. "@storybook/theming": "^8.1.2",
  102. "@testing-library/jest-dom": "^6.4.5",
  103. "@testing-library/react": "^15.0.7",
  104. "@testing-library/user-event": "^14.5.2",
  105. "@types/d3-interpolate": "^3.0.1",
  106. "@types/d3-shape": "^3.1.0",
  107. "@types/d3-time-format": "^4.0.0",
  108. "@types/lodash": "^4.14.144",
  109. "@types/node": "^14.18.34",
  110. "@types/react": "^18.3.3",
  111. "@types/react-dom": "^18.3.0",
  112. "@types/react-is": "^18.3.0",
  113. "@types/react-router-dom": "^5.1.7",
  114. "@typescript-eslint/eslint-plugin": "^4.33.0",
  115. "@typescript-eslint/parser": "^4.33.0",
  116. "@vitejs/plugin-react": "^4.0.4",
  117. "@vitest/coverage-v8": "^0.34.6",
  118. "babel-loader": "^9.1.3",
  119. "babel-plugin-dev-expression": "^0.2.3",
  120. "babel-plugin-lodash": "^3.3.4",
  121. "browserslist": "^4.21.0",
  122. "chromatic": "^11.4.0",
  123. "concurrently": "^7.6.0",
  124. "cross-env": "^7.0.3",
  125. "d3-scale-chromatic": "^3.0.0",
  126. "d3-time": "^3.1.0",
  127. "d3-time-format": "^4.1.0",
  128. "eslint": "^7.32.0",
  129. "eslint-config-airbnb": "^18.2.1",
  130. "eslint-config-prettier": "^7.2.0",
  131. "eslint-plugin-import": "^2.26.0",
  132. "eslint-plugin-jsx-a11y": "^6.6.1",
  133. "eslint-plugin-prettier": "^3.1.2",
  134. "eslint-plugin-react": "^7.31.11",
  135. "eslint-plugin-react-hooks": "^4.6.0",
  136. "eslint-plugin-storybook": "^0.6.15",
  137. "husky": "^8.0.2",
  138. "jsdom": "^22.1.0",
  139. "lint-staged": "^13.2.2",
  140. "prettier": "^2.2.1",
  141. "react": "^18.3.1",
  142. "react-dom": "^18.3.1",
  143. "react-router-dom": "^5.1.2",
  144. "rimraf": "^3.0.2",
  145. "storybook": "^8.1.2",
  146. "terser-webpack-plugin": "^5.1.1",
  147. "ts-loader": "^8.0.12",
  148. "typescript": "4.9.5",
  149. "update-browserslist-db": "^1.0.10",
  150. "vitest": "^0.34.5",
  151. "vitest-axe": "^0.1.0",
  152. "webpack": "^5.65.0",
  153. "webpack-bundle-analyzer": "^4.4.0",
  154. "webpack-cli": "^4.9.0",
  155. "webpack-dev-server": "^4.6.0"
  156. },
  157. "engines": {
  158. "node": ">=14"
  159. },
  160. "license": "MIT"
  161. }