recharts
Version:
React charts
210 lines (209 loc) • 8.05 kB
JSON
{
"name": "recharts",
"version": "3.9.2",
"description": "React charts",
"main": "lib/index.js",
"module": "es6/index.js",
"jsnext:main": "es6/index.js",
"types": "types/index.d.ts",
"sideEffects": false,
"workspaces": [
"www"
],
"files": [
"*.md",
"es6",
"lib",
"umd",
"types"
],
"keywords": [
"react",
"reactjs",
"chart",
"react-component"
],
"scripts": {
"prepare": "husky || true",
"prebuild": "npm run omnidoc",
"build": "npm run build-types && npm run build-cjs && npm run build-es6 && npm run build-umd && npm run test-build-output",
"build-cjs": "rimraf lib && cross-env NODE_ENV=commonjs babel ./src -d lib --extensions '.js,.ts,.tsx'",
"build-es6": "rimraf es6 && cross-env NODE_ENV=es6 babel ./src -d es6 --extensions '.js,.ts,.tsx'",
"build-umd": "rimraf umd && cross-env NODE_ENV=production webpack -o umd",
"build-types": "rimraf types && npm run tsc",
"check-types": "npm run check-types-lib && npm run check-types-test && npm run check-types-storybook && npm run check-types-test-vr && npm run check-types-website",
"check-types-lib": "tsc --noEmit",
"check-types-test": "tsc --project test/tsconfig.json",
"check-types-storybook": "tsc --project storybook/tsconfig.json",
"check-types-test-vr": "tsc --project test-vr/tsconfig.json",
"check-types-website": "tsc --project www/tsconfig.json",
"check-playwright-versions": "node scripts/check-playwright-versions.mjs",
"test": "vitest run --config vitest.config.mts --project unit:*",
"test-lib": "vitest run --config vitest.config.mts --project unit:lib",
"test-website": "vitest run --config vitest.config.mts --project unit:website",
"test-coverage": "vitest run --config vitest.config.mts --coverage --project unit:*",
"test-omnidoc": "vitest run --project unit:omnidoc --config vitest.config.mts",
"test-exports": "vitest run scripts/verify-exports.test.ts",
"test-treeshaking": "vitest run scripts/treeshaking.test.ts scripts/generate-bundle-data.test.ts",
"omnidoc": "npm exec --prefix ./www -- tsx ./omnidoc/generateApiDoc.ts && npm exec --prefix ./www -- tsx ./omnidoc/generateStorybookArgs.ts",
"test-mutation": "stryker run",
"test-watch": "vitest --config vitest.config.mts --project unit:*",
"lint": "eslint .",
"autofix": "eslint . --fix",
"analyse": "cross-env NODE_ENV=analyse webpack -o umd/Recharts.js",
"trace-bundle": "node scripts/trace-bundle.ts",
"generate-bundle-data": "npm exec --prefix ./www -- tsx ./scripts/generate-bundle-data.ts",
"prettier": "prettier . --write",
"tsc": "tsc",
"storybook-doctor": "npx storybook doctor --config-dir storybook",
"storybook": "npx storybook dev -p 6006 -c storybook",
"build-storybook": "npx storybook build -o storybook/public -c storybook",
"chromatic": "npx chromatic",
"test-build-output": "vitest run --project build-output --config vitest.config.mts",
"test-storybook": "vitest --config vitest.config.mts --project storybook",
"test-vr:prepare": "npm run build && docker compose up -d --build",
"test-vr": "docker compose run --rm test-vr playwright-test",
"test-vr:update": "docker compose run --rm test-vr playwright-test --update-snapshots",
"test-vr:ui": "docker compose run -p 8080:8080 --rm test-vr playwright-test --ui --ui-host=0.0.0.0 --ui-port=8080",
"test-vr:report": "npx playwright show-report test-vr/playwright-report",
"bundlewatch": "bundlewatch --config .bundlewatch.config.json",
"lgtm": "npm run lint && npm run build && npm run test && npm run check-types"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"eslint --fix",
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/recharts/recharts.git"
},
"author": {
"name": "recharts group"
},
"bugs": {
"url": "https://github.com/recharts/recharts/issues"
},
"homepage": "https://github.com/recharts/recharts",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"dependencies": {
"@reduxjs/toolkit": "^1.9.0 || 2.x.x",
"clsx": "^2.1.1",
"decimal.js-light": "^2.5.1",
"es-toolkit": "^1.39.3",
"eventemitter3": "^5.0.1",
"immer": "^11.1.8",
"react-redux": "8.x.x || 9.x.x",
"reselect": "5.2.0",
"tiny-invariant": "^1.3.3",
"use-sync-external-store": "^1.2.2",
"victory-vendor": "^37.0.2"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.24.9",
"@babel/preset-env": "^7.29.0",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@babel/runtime": "^7.26.10",
"@chromatic-com/storybook": "^5.2.1",
"@codecov/bundle-analyzer": "^2.0.1",
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
"@eslint/compat": "^2.1.0",
"@eslint/js": "^9.35.0",
"@flakiness/playwright": "^1.9.0",
"@playwright/experimental-ct-react": "1.61.1",
"@recharts/devtools": "^0.0.14",
"@reduxjs/toolkit": "^1.9.7",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-commonjs": "^29.0.2",
"@rollup/plugin-node-resolve": "^16.0.3",
"@stackblitz/sdk": "^1.11.0",
"@storybook/addon-a11y": "^10.4.1",
"@storybook/addon-docs": "^10.4.1",
"@storybook/addon-links": "^10.4.1",
"@storybook/addon-onboarding": "^10.4.1",
"@storybook/addon-vitest": "^10.4.1",
"@storybook/builder-vite": "^10.4.1",
"@storybook/icons": "^2.0.2",
"@storybook/react-vite": "^10.4.1",
"@stryker-mutator/typescript-checker": "^9.6.1",
"@stryker-mutator/vitest-runner": "^9.6.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/d3-interpolate": "^3.0.4",
"@types/d3-shape": "^3.1.6",
"@types/d3-time-format": "^4.0.3",
"@types/node": "25.x.x",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/browser-playwright": "^4.1.7",
"@vitest/coverage-v8": "^4.1.7",
"babel-loader": "^9.1.3",
"babel-plugin-dev-expression": "^0.2.3",
"babel-plugin-transform-define": "^2.1.4",
"browserslist": "^4.23.2",
"bundlewatch": "^0.4.1",
"chromatic": "^11.5.6",
"cross-env": "^10.1.0",
"d3-scale-chromatic": "^3.1.0",
"d3-time": "^3.1.0",
"d3-time-format": "^4.1.0",
"diff": "^9.0.0",
"eslint": "^9.35.0",
"eslint-config-airbnb-extended": "^3.1.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsdoc": "^63.0.2",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-perf": "^3.3.3",
"eslint-plugin-storybook": "^10.4.1",
"glob": "^13.0.6",
"globals": "^16.3.0",
"husky": "^9.1.1",
"jsdom": "^29.1.1",
"lint-staged": "^17.0.7",
"marked": "^18.0.5",
"playwright": "1.61.1",
"prettier": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"react-redux": "^8.1.3",
"rimraf": "^6.0.1",
"rollup": "^4.40.1",
"rollup-plugin-esbuild": "^6.2.1",
"storybook": "^10.4.1",
"terser": "^5.46.0",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.1",
"ts-morph": "^28.0.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.42.0",
"update-browserslist-db": "^1.1.0",
"vitest": "^4.1.7",
"vitest-axe": "^0.1.0",
"webpack": "^5.93.0",
"webpack-bundle-analyzer": "^5.3.0",
"webpack-cli": "^7.0.3"
},
"engines": {
"node": ">=18"
},
"license": "MIT",
"overrides": {
"axios": "0.30.3"
}
}