forked from recharts/recharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
170 lines (170 loc) · 6.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "recharts",
"version": "2.12.1",
"description": "React charts",
"main": "lib/index.js",
"module": "es6/index.js",
"jsnext:main": "es6/index.js",
"types": "types/index.d.ts",
"sideEffects": false,
"files": [
"*.md",
"es6",
"lib",
"umd",
"types"
],
"keywords": [
"react",
"reactjs",
"chart",
"react-component"
],
"scripts": {
"prepare": "husky install",
"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 --entry ./src/index.ts -o umd",
"build-types": "rimraf types && npm run tsc",
"check-types": "tsc --noEmit && npm run check-types-test && npm run check-types-storybook",
"check-types-test": "tsc --project test/tsconfig.json",
"check-types-storybook": "tsc --project storybook/tsconfig.json",
"demo": "webpack serve --config demo/webpack.config.js --port 3000 --host 127.0.0.1 --progress --profile --static demo/",
"test": "vitest run --config vitest.config.ts",
"test-coverage": "vitest run --config vitest.config.ts --coverage",
"test-mutation": "stryker run",
"test-watch": "vitest --config vitest.config.ts",
"lint": "eslint \"./src/**/*.{ts,tsx}\"",
"lint-test": "eslint \"./test/**/*.{ts,tsx}\"",
"lint-storybook": "eslint \"./storybook/**/*.{ts,tsx}\"",
"autofix": "eslint \"./src/**/*.{ts,tsx}\" --fix",
"analyse": "cross-env NODE_ENV=analyse webpack ./src/index.ts -o umd/Recharts.js",
"tsc": "tsc",
"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 --config scripts/vitest-build.config.ts",
"test-storybook": "test-storybook --config-dir storybook",
"test-storybook:url": "test-storybook --url http://127.0.0.1:9009 --config-dir storybook",
"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\""
},
"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",
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.3",
"@storybook/test": "^8.0.4",
"clsx": "^2.0.0",
"eventemitter3": "^4.0.1",
"lodash": "^4.17.21",
"react-is": "^16.10.2",
"react-redux": "^8.1.3",
"react-smooth": "^4.0.0",
"recharts-scale": "^0.4.4",
"tiny-invariant": "^1.3.1",
"victory-vendor": "^36.6.8"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/runtime": "^7.23.2",
"@chromatic-com/storybook": "^1.2.25",
"@storybook/addon-a11y": "^8.0.4",
"@storybook/addon-docs": "^8.0.4",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
"@storybook/addon-mdx-gfm": "^8.0.4",
"@storybook/addon-storysource": "^8.0.4",
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
"@storybook/manager-api": "^8.0.4",
"@storybook/react": "^8.0.4",
"@storybook/react-webpack5": "^8.0.4",
"@storybook/source-loader": "^8.0.4",
"@storybook/test-runner": "^0.17.0",
"@storybook/theming": "^8.0.4",
"@stryker-mutator/typescript-checker": "^8.2.6",
"@stryker-mutator/vitest-runner": "^8.2.5",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.3.0",
"@types/d3-interpolate": "^3.0.1",
"@types/d3-shape": "^3.1.0",
"@types/d3-time-format": "^4.0.0",
"@types/lodash": "^4.14.144",
"@types/node": "18.x.x",
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"@types/react-is": "^17.0.0",
"@types/react-router-dom": "^5.1.7",
"@typescript-eslint/eslint-plugin": "6.x.x",
"@typescript-eslint/parser": "6.x.x",
"@vitejs/plugin-react": "^4.0.4",
"@vitest/coverage-v8": "1.5.x",
"babel-loader": "^9.1.3",
"babel-plugin-dev-expression": "^0.2.3",
"browserslist": "^4.22.3",
"chromatic": "^6.15.0",
"concurrently": "^7.6.0",
"cross-env": "^7.0.3",
"d3-scale-chromatic": "^3.0.0",
"d3-time": "^3.1.0",
"d3-time-format": "^4.1.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.8.0",
"glob": "^10.3.10",
"husky": "^8.0.2",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"prettier": "^2.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-router-dom": "^5.1.2",
"rimraf": "^3.0.2",
"storybook": "^8.0.4",
"storybook-addon-performance": "^0.17.3",
"terser-webpack-plugin": "^5.1.1",
"ts-loader": "^8.0.12",
"typescript": "5.4.x",
"update-browserslist-db": "^1.0.10",
"vitest": "1.5.x",
"vitest-axe": "^0.1.0",
"webpack": "^5.65.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.9.0",
"webpack-dev-server": "^4.6.0"
},
"engines": {
"node": ">=18"
},
"license": "MIT"
}