1 | {
|
2 | "name": "recharts",
|
3 | "version": "2.1.6",
|
4 | "description": "React charts",
|
5 | "main": "lib/index",
|
6 | "module": "es6/index",
|
7 | "jsnext:main": "es6/index",
|
8 | "types": "types/index.d.ts",
|
9 | "sideEffects": false,
|
10 | "files": [
|
11 | "*.md",
|
12 | "demo",
|
13 | "es6",
|
14 | "lib",
|
15 | "umd",
|
16 | "src",
|
17 | "types"
|
18 | ],
|
19 | "keywords": [
|
20 | "react",
|
21 | "reactjs",
|
22 | "chart",
|
23 | "react-component"
|
24 | ],
|
25 | "scripts": {
|
26 | "build": "npm run build-types && npm run build-cjs && npm run build-es6 && npm run build-umd",
|
27 | "build-cjs": "rimraf lib && cross-env NODE_ENV=commonjs babel ./src -d lib --extensions '.js,.ts,.tsx'",
|
28 | "build-es6": "rimraf es6 && cross-env NODE_ENV=es6 babel ./src -d es6 --extensions '.js,.ts,.tsx'",
|
29 | "build-umd": "rimraf umd && cross-env NODE_ENV=production webpack --entry ./src/index.ts -o umd",
|
30 | "build-types": "rimraf types && npm run tsc",
|
31 | "demo": "webpack serve --config demo/webpack.config.js --port 3000 --host 127.0.0.1 --progress --profile --content-base demo/",
|
32 | "test": "cross-env NODE_ENV=test karma start test/karma.conf.js",
|
33 | "lint": "eslint './src/**/*.?(ts|tsx)'",
|
34 | "autofix": "eslint './src/**/*.?(ts|tsx)' --fix",
|
35 | "analyse": "cross-env NODE_ENV=analyse webpack ./src/index.ts -o umd/Recharts.js",
|
36 | "tsc": "tsc"
|
37 | },
|
38 | "pre-commit": [],
|
39 | "pre-push": [
|
40 | "test",
|
41 | "lint"
|
42 | ],
|
43 | "repository": {
|
44 | "type": "git",
|
45 | "url": "https://github.com/recharts/recharts.git"
|
46 | },
|
47 | "author": "recharts group",
|
48 | "bugs": {
|
49 | "url": "https://github.com/recharts/recharts/issues"
|
50 | },
|
51 | "homepage": "https://github.com/recharts/recharts",
|
52 | "peerDependencies": {
|
53 | "react": "^16.0.0 || ^17.0.0",
|
54 | "react-dom": "^16.0.0 || ^17.0.0"
|
55 | },
|
56 | "dependencies": {
|
57 | "@types/d3-scale": "^3.0.0",
|
58 | "@types/d3-shape": "^2.0.0",
|
59 | "@types/d3-interpolate": "^2.0.0",
|
60 | "classnames": "^2.2.5",
|
61 | "d3-interpolate": "^2.0.0",
|
62 | "d3-scale": "^3.0.0",
|
63 | "d3-shape": "^2.0.0",
|
64 | "eventemitter3": "^4.0.1",
|
65 | "lodash": "^4.17.19",
|
66 | "react-is": "^16.10.2",
|
67 | "react-resize-detector": "^6.6.3",
|
68 | "react-smooth": "^2.0.0",
|
69 | "recharts-scale": "^0.4.4",
|
70 | "reduce-css-calc": "^2.1.8"
|
71 | },
|
72 | "devDependencies": {
|
73 | "@babel/cli": "^7.6.4",
|
74 | "@babel/core": "^7.6.4",
|
75 | "@babel/plugin-proposal-class-properties": "^7.0.0",
|
76 | "@babel/plugin-proposal-export-default-from": "^7.0.0",
|
77 | "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
78 | "@babel/plugin-proposal-function-bind": "^7.0.0",
|
79 | "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
80 | "@babel/plugin-transform-runtime": "^7.6.2",
|
81 | "@babel/preset-env": "^7.6.3",
|
82 | "@babel/preset-react": "^7.6.3",
|
83 | "@babel/preset-typescript": "^7.6.0",
|
84 | "@babel/runtime": "^7.6.3",
|
85 | "@types/classnames": "^2.2.9",
|
86 | "@types/lodash": "^4.14.144",
|
87 | "@types/react": "^16.0.0",
|
88 | "@types/react-dom": "^16.0.0",
|
89 | "@types/react-is": "^17.0.0",
|
90 | "@types/react-router-dom": "^5.1.7",
|
91 | "@typescript-eslint/eslint-plugin": "^4.11.0",
|
92 | "@typescript-eslint/parser": "^4.11.0",
|
93 | "babel-eslint": "^10.1.0",
|
94 | "babel-loader": "^8.0.0",
|
95 | "babel-plugin-istanbul": "^6.0.0",
|
96 | "babel-plugin-lodash": "^3.3.0",
|
97 | "babel-preset-airbnb": "^5.0.0",
|
98 | "chai": "^4.2.0",
|
99 | "chai-enzyme": "^1.0.0-beta.1",
|
100 | "cross-env": "^7.0.3",
|
101 | "d3-scale-chromatic": "^2.0.0",
|
102 | "enzyme": "^3.10.0",
|
103 | "enzyme-adapter-react-16": "^1.15.6",
|
104 | "eslint": "^7.16.0",
|
105 | "eslint-config-airbnb": "^18.2.1",
|
106 | "eslint-config-prettier": "^7.1.0",
|
107 | "eslint-plugin-import": "^2.22.1",
|
108 | "eslint-plugin-jsx-a11y": "^6.4.1",
|
109 | "eslint-plugin-prettier": "^3.1.2",
|
110 | "eslint-plugin-react": "^7.19.0",
|
111 | "json-loader": "^0.5.7",
|
112 | "karma": "^6.0.0",
|
113 | "karma-chai": "^0.1.0",
|
114 | "karma-chrome-launcher": "^3.1.0",
|
115 | "karma-coverage": "^2.0.2",
|
116 | "karma-coveralls": "^2.1.0",
|
117 | "karma-firefox-launcher": "^2.1.0",
|
118 | "karma-mocha": "^2.0.1",
|
119 | "karma-sourcemap-loader": "^0.3.7",
|
120 | "karma-webpack": "^5.0.0",
|
121 | "mocha": "^8.2.1",
|
122 | "pre-commit": "^1.1.3",
|
123 | "prettier": "^2.2.1",
|
124 | "react": "^16.0.0",
|
125 | "react-dom": "^16.0.0",
|
126 | "react-router-dom": "^5.1.2",
|
127 | "react-test-renderer": "^16.12.0",
|
128 | "rimraf": "^3.0.2",
|
129 | "sinon": "^9.2.2",
|
130 | "terser-webpack-plugin": "^5.1.1",
|
131 | "ts-loader": "^8.0.12",
|
132 | "typescript": "^4.1.3",
|
133 | "webpack": "^5.0.0",
|
134 | "webpack-bundle-analyzer": "^4.4.0",
|
135 | "webpack-cli": "^4.5.0",
|
136 | "webpack-dev-server": "^3.11.0"
|
137 | },
|
138 | "license": "MIT"
|
139 | }
|