- new workspace package packages/chart (shadcn/ui Chart + Recharts, HM Theme tokens), examples entry with sample data - Storybook Chart group (src/chart), consumer example (examples/chart), build:chart / build:chart-example scripts - README rewritten as the AI usage guide (install, CSS wiring, chart selection, data rules, verification) - docs: package count/list, Submodule guide (chart workspace, React dedupe), shared AI_GUIDE row, MAINTAINING, story inventory
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"name": "@hm-design/chart",
|
|
"version": "0.1.0",
|
|
"private": false,
|
|
"description": "HM Design System charts (shadcn/ui Chart + Recharts): bar, line, donut, pie, radar, area and radial. Reuses the @hm-design/ui theme tokens.",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./examples": {
|
|
"types": "./dist/examples/index.d.ts",
|
|
"import": "./dist/examples.js",
|
|
"default": "./dist/examples.js"
|
|
},
|
|
"./style.css": "./dist/style.css",
|
|
"./tailwind.css": "./dist/tailwind.css"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"typecheck": "tsc -p tsconfig.json",
|
|
"build": "node ../../scripts/build-package.mjs chart",
|
|
"prepack": "npm run build"
|
|
},
|
|
"sideEffects": [
|
|
"**/*.css",
|
|
"./dist/index.js",
|
|
"./dist/examples.js"
|
|
],
|
|
"dependencies": {
|
|
"cn": "^0.4.0",
|
|
"recharts": "3.8.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@hm-design/ui": "0.1.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"tailwindcss": "^4.0.0"
|
|
}
|
|
}
|