-
Notifications
You must be signed in to change notification settings - Fork 79
/
package.json
97 lines (97 loc) · 3.18 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
{
"name": "react-minimal-pie-chart",
"version": "9.1.0",
"description": "Lightweight but versatile SVG pie/donut charts for React",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"test": "vitest --config ./vitest.config.mts",
"test:bundles": "npm run test:bundles:snapshot && npm run test:bundles:unit && npm run test:bundles:size",
"test:bundles:unit": "vitest --config ./test-bundles/cjs.vitest.config.mts --run && vitest --config ./test-bundles/es.vitest.config.mts --run",
"test:bundles:snapshot": "npm run test -- --run --dir ./test-bundles",
"test:bundles:size": "size-limit",
"test:source": "npm run test:ts && npm t -- --coverage --run",
"test:ts": "tsc --noEmit",
"test:update": "npm run build:source && npm run test:bundles:snapshot -- -u && git add ./jest/__tests__/__snapshots__",
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c --bundleConfigAsCjs",
"build:source": "rollup -c --bundleConfigAsCjs",
"build:types": "tsc -p tsconfig.build.json",
"format:check": "prettier . --check",
"format:fix": "npm run format:check -- --write",
"preversion": "npm run prepare",
"version": "git add package.json",
"postversion": "git push && git push --tags",
"prepare": "npx simple-git-hooks && npm run test -- --run && npm run test:source && npm run build && npm run test:bundles",
"start": "storybook dev",
"storybook:build": "storybook build"
},
"keywords": [
"react",
"pie",
"donough",
"arc",
"chart",
"typescript"
],
"repository": {
"type": "git",
"url": "git+https://github.com/toomuchdesign/react-minimal-pie-chart.git"
},
"author": "Andrea Carraro <[email protected]>",
"license": "MIT",
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18 || ^19",
"react-dom": "^16.8.0 || ^17 || ^18 || ^19"
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@rollup/plugin-typescript": "^12.1.1",
"@schwingbat/relative-angle": "^1.0.0",
"@size-limit/preset-small-lib": "^11.1.4",
"@storybook/addon-essentials": "^8.1.6",
"@storybook/react": "^8.1.6",
"@storybook/react-vite": "^8.1.6",
"@storybook/test": "^8.1.6",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^16.1.0",
"@total-typescript/tsconfig": "^1.0.4",
"@types/node": "^22.8.6",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/svg-path-parser": "^1.1.6",
"@vitest/coverage-v8": "^2.1.4",
"jsdom": "^25.0.1",
"prettier": "^3.2.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-tooltip": "^4.5.1",
"rollup": "^4.18.0",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.4",
"storybook": "^8.1.6",
"svg-path-parser": "^1.1.0",
"typescript": "^5.4.5",
"vitest": "^2.1.4"
},
"size-limit": [
{
"limit": "2.5 KB",
"path": "./dist/index.esm.js",
"ignore": [
"react"
]
}
],
"simple-git-hooks": {
"pre-commit": "npm run format:check && npm run test:source"
},
"dependencies": {
"svg-partial-circle": "^1.0.0"
}
}