| [a762898] | 1 | {
|
|---|
| 2 | "name": "recharts",
|
|---|
| 3 | "version": "3.7.0",
|
|---|
| 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 | "workspaces": [
|
|---|
| 11 | "www"
|
|---|
| 12 | ],
|
|---|
| 13 | "files": [
|
|---|
| 14 | "*.md",
|
|---|
| 15 | "es6",
|
|---|
| 16 | "lib",
|
|---|
| 17 | "umd",
|
|---|
| 18 | "types"
|
|---|
| 19 | ],
|
|---|
| 20 | "keywords": [
|
|---|
| 21 | "react",
|
|---|
| 22 | "reactjs",
|
|---|
| 23 | "chart",
|
|---|
| 24 | "react-component"
|
|---|
| 25 | ],
|
|---|
| 26 | "scripts": {
|
|---|
| 27 | "prepare": "husky",
|
|---|
| 28 | "prebuild": "npm run lint",
|
|---|
| 29 | "build": "npm run build-types && npm run build-cjs && npm run build-es6 && npm run build-umd && npm run test-build-output",
|
|---|
| 30 | "build-cjs": "rimraf lib && cross-env NODE_ENV=commonjs babel ./src -d lib --extensions '.js,.ts,.tsx'",
|
|---|
| 31 | "build-es6": "rimraf es6 && cross-env NODE_ENV=es6 babel ./src -d es6 --extensions '.js,.ts,.tsx'",
|
|---|
| 32 | "build-umd": "rimraf umd && cross-env NODE_ENV=production webpack -o umd",
|
|---|
| 33 | "build-types": "rimraf types && npm run tsc",
|
|---|
| 34 | "check-types": "tsc --noEmit && npm run check-types-test && npm run check-types-storybook && npm run check-types-website",
|
|---|
| 35 | "check-types-test": "tsc --project test/tsconfig.json",
|
|---|
| 36 | "check-types-storybook": "tsc --project storybook/tsconfig.json",
|
|---|
| 37 | "check-types-website": "tsc --project www/tsconfig.json",
|
|---|
| 38 | "check-playwright-versions": "node scripts/check-playwright-versions.mjs",
|
|---|
| 39 | "test": "vitest run --config vitest.config.mts --project unit:*",
|
|---|
| 40 | "test-lib": "vitest run --config vitest.config.mts --project unit:lib",
|
|---|
| 41 | "test-website": "vitest run --config vitest.config.mts --project unit:website",
|
|---|
| 42 | "test-coverage": "vitest run --config vitest.config.mts --coverage --project unit:*",
|
|---|
| 43 | "test-omnidoc": "vitest run --project unit:omnidoc --config vitest.config.mts",
|
|---|
| 44 | "test-exports": "vitest run scripts/verify-exports.test.ts",
|
|---|
| 45 | "omnidoc": "npx tsx omnidoc/generateApiDoc.ts && npx tsx omnidoc/generateStorybookArgs.ts && prettier www/src/docs/api storybook/stories/API/arg-types --write",
|
|---|
| 46 | "test-mutation": "stryker run",
|
|---|
| 47 | "test-watch": "vitest --config vitest.config.mts --project unit:*",
|
|---|
| 48 | "lint": "eslint .",
|
|---|
| 49 | "autofix": "eslint . --fix",
|
|---|
| 50 | "analyse": "cross-env NODE_ENV=analyse webpack -o umd/Recharts.js",
|
|---|
| 51 | "prettier": "prettier . --write",
|
|---|
| 52 | "tsc": "tsc",
|
|---|
| 53 | "storybook-doctor": "npx storybook doctor --config-dir storybook",
|
|---|
| 54 | "storybook": "npx storybook dev -p 6006 -c storybook",
|
|---|
| 55 | "build-storybook": "npx storybook build -o storybook/public -c storybook",
|
|---|
| 56 | "chromatic": "npx chromatic",
|
|---|
| 57 | "test-build-output": "vitest run --project build-output --config vitest.config.mts",
|
|---|
| 58 | "test-storybook": "vitest --config vitest.config.mts --project storybook",
|
|---|
| 59 | "test-vr:prepare": "docker compose up -d --build",
|
|---|
| 60 | "test-vr": "docker compose run --rm test-vr playwright-test",
|
|---|
| 61 | "test-vr:update": "docker compose run --rm test-vr playwright-test --update-snapshots",
|
|---|
| 62 | "test-vr:ui": "docker compose run -p 8080:8080 --rm test-vr playwright-test --ui --ui-host=0.0.0.0 --ui-port=8080",
|
|---|
| 63 | "test-vr:report": "npx playwright show-report test-vr/playwright-report"
|
|---|
| 64 | },
|
|---|
| 65 | "lint-staged": {
|
|---|
| 66 | "*.{ts,tsx,js,jsx}": [
|
|---|
| 67 | "eslint --fix",
|
|---|
| 68 | "prettier --write"
|
|---|
| 69 | ]
|
|---|
| 70 | },
|
|---|
| 71 | "repository": {
|
|---|
| 72 | "type": "git",
|
|---|
| 73 | "url": "git+https://github.com/recharts/recharts.git"
|
|---|
| 74 | },
|
|---|
| 75 | "author": {
|
|---|
| 76 | "name": "recharts group"
|
|---|
| 77 | },
|
|---|
| 78 | "bugs": {
|
|---|
| 79 | "url": "https://github.com/recharts/recharts/issues"
|
|---|
| 80 | },
|
|---|
| 81 | "homepage": "https://github.com/recharts/recharts",
|
|---|
| 82 | "peerDependencies": {
|
|---|
| 83 | "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|---|
| 84 | "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|---|
| 85 | "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|---|
| 86 | },
|
|---|
| 87 | "dependencies": {
|
|---|
| 88 | "@reduxjs/toolkit": "1.x.x || 2.x.x",
|
|---|
| 89 | "clsx": "^2.1.1",
|
|---|
| 90 | "decimal.js-light": "^2.5.1",
|
|---|
| 91 | "es-toolkit": "^1.39.3",
|
|---|
| 92 | "eventemitter3": "^5.0.1",
|
|---|
| 93 | "immer": "^10.1.1",
|
|---|
| 94 | "react-redux": "8.x.x || 9.x.x",
|
|---|
| 95 | "reselect": "5.1.1",
|
|---|
| 96 | "tiny-invariant": "^1.3.3",
|
|---|
| 97 | "use-sync-external-store": "^1.2.2",
|
|---|
| 98 | "victory-vendor": "^37.0.2"
|
|---|
| 99 | },
|
|---|
| 100 | "devDependencies": {
|
|---|
| 101 | "@babel/cli": "^7.24.8",
|
|---|
| 102 | "@babel/core": "^7.24.9",
|
|---|
| 103 | "@babel/preset-env": "^7.24.8",
|
|---|
| 104 | "@babel/preset-react": "^7.24.7",
|
|---|
| 105 | "@babel/preset-typescript": "^7.24.7",
|
|---|
| 106 | "@babel/runtime": "^7.26.10",
|
|---|
| 107 | "@chromatic-com/storybook": "^4.0.1",
|
|---|
| 108 | "@codecov/bundle-analyzer": "^1.9.1",
|
|---|
| 109 | "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|---|
| 110 | "@eslint/compat": "^1.3.2",
|
|---|
| 111 | "@eslint/js": "^9.35.0",
|
|---|
| 112 | "@playwright/experimental-ct-react": "1.57.0",
|
|---|
| 113 | "@recharts/devtools": "^0.0.7",
|
|---|
| 114 | "@reduxjs/toolkit": "^1.9.7",
|
|---|
| 115 | "@stackblitz/sdk": "^1.11.0",
|
|---|
| 116 | "@storybook/addon-a11y": "^9.0.17",
|
|---|
| 117 | "@storybook/addon-docs": "^9.0.17",
|
|---|
| 118 | "@storybook/addon-links": "^9.0.17",
|
|---|
| 119 | "@storybook/addon-onboarding": "^9.0.17",
|
|---|
| 120 | "@storybook/addon-vitest": "^9.0.17",
|
|---|
| 121 | "@storybook/builder-vite": "^9.0.17",
|
|---|
| 122 | "@storybook/icons": "^1.2.12",
|
|---|
| 123 | "@storybook/react-vite": "^9.0.17",
|
|---|
| 124 | "@stryker-mutator/typescript-checker": "^9.2.0",
|
|---|
| 125 | "@stryker-mutator/vitest-runner": "^9.2.0",
|
|---|
| 126 | "@testing-library/jest-dom": "^6.4.8",
|
|---|
| 127 | "@testing-library/react": "^16.0.0",
|
|---|
| 128 | "@testing-library/user-event": "^14.5.2",
|
|---|
| 129 | "@types/d3-interpolate": "^3.0.4",
|
|---|
| 130 | "@types/d3-shape": "^3.1.6",
|
|---|
| 131 | "@types/d3-time-format": "^4.0.3",
|
|---|
| 132 | "@types/node": "24.x.x",
|
|---|
| 133 | "@types/react": "^18.3.3",
|
|---|
| 134 | "@types/react-dom": "^18.3.0",
|
|---|
| 135 | "@types/react-is": "^18.3.0",
|
|---|
| 136 | "@vitejs/plugin-react": "^4.3.1",
|
|---|
| 137 | "@vitest/browser": "3.2.4",
|
|---|
| 138 | "@vitest/coverage-v8": "^3.2.3",
|
|---|
| 139 | "babel-loader": "^9.1.3",
|
|---|
| 140 | "babel-plugin-dev-expression": "^0.2.3",
|
|---|
| 141 | "babel-plugin-transform-define": "^2.1.4",
|
|---|
| 142 | "browserslist": "^4.23.2",
|
|---|
| 143 | "chromatic": "^11.5.6",
|
|---|
| 144 | "cross-env": "^7.0.3",
|
|---|
| 145 | "d3-scale-chromatic": "^3.1.0",
|
|---|
| 146 | "d3-time": "^3.1.0",
|
|---|
| 147 | "d3-time-format": "^4.1.0",
|
|---|
| 148 | "diff": "^8.0.2",
|
|---|
| 149 | "eslint": "^9.35.0",
|
|---|
| 150 | "eslint-config-airbnb-extended": "^2.2.0",
|
|---|
| 151 | "eslint-config-prettier": "^10.1.8",
|
|---|
| 152 | "eslint-import-resolver-typescript": "^4.4.4",
|
|---|
| 153 | "eslint-plugin-import": "^2.32.0",
|
|---|
| 154 | "eslint-plugin-jsdoc": "^61.5.0",
|
|---|
| 155 | "eslint-plugin-jsx-a11y": "^6.10.2",
|
|---|
| 156 | "eslint-plugin-prettier": "^5.5.4",
|
|---|
| 157 | "eslint-plugin-react": "^7.37.5",
|
|---|
| 158 | "eslint-plugin-react-hooks": "^5.2.0",
|
|---|
| 159 | "eslint-plugin-react-perf": "^3.3.3",
|
|---|
| 160 | "eslint-plugin-storybook": "^9.1.5",
|
|---|
| 161 | "glob": "^11.0.0",
|
|---|
| 162 | "globals": "^16.3.0",
|
|---|
| 163 | "husky": "^9.1.1",
|
|---|
| 164 | "jsdom": "^24.1.1",
|
|---|
| 165 | "lint-staged": "^15.2.7",
|
|---|
| 166 | "marked": "^17.0.1",
|
|---|
| 167 | "playwright": "1.57.0",
|
|---|
| 168 | "prettier": "^3.6.2",
|
|---|
| 169 | "react": "^18.3.1",
|
|---|
| 170 | "react-dom": "^18.3.1",
|
|---|
| 171 | "react-is": "^18.3.1",
|
|---|
| 172 | "react-redux": "^8.1.3",
|
|---|
| 173 | "rimraf": "^6.0.1",
|
|---|
| 174 | "storybook": "^9.0.17",
|
|---|
| 175 | "terser-webpack-plugin": "^5.3.10",
|
|---|
| 176 | "ts-loader": "^9.5.1",
|
|---|
| 177 | "ts-morph": "^27.0.2",
|
|---|
| 178 | "typescript": "^5.7.2",
|
|---|
| 179 | "typescript-eslint": "^8.42.0",
|
|---|
| 180 | "update-browserslist-db": "^1.1.0",
|
|---|
| 181 | "vitest": "^3.2.3",
|
|---|
| 182 | "vitest-axe": "^0.1.0",
|
|---|
| 183 | "webpack": "^5.93.0",
|
|---|
| 184 | "webpack-bundle-analyzer": "^4.10.2",
|
|---|
| 185 | "webpack-cli": "^5.1.4"
|
|---|
| 186 | },
|
|---|
| 187 | "engines": {
|
|---|
| 188 | "node": ">=18"
|
|---|
| 189 | },
|
|---|
| 190 | "license": "MIT"
|
|---|
| 191 | }
|
|---|