UNPKG

react-minimal-pie-chart

Version:
98 lines (97 loc) 3.25 kB
{ "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 <me@andreacarraro.it>", "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" } }