package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "@d8d/mini-charts",
  3. "version": "1.0.0",
  4. "description": "小程序图表库包 - 提供 u-charts 图表库核心功能",
  5. "type": "module",
  6. "main": "dist/src/index.js",
  7. "types": "dist/src/index.d.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./dist/src/index.d.ts",
  11. "import": "./dist/src/index.js",
  12. "require": "./dist/src/index.js"
  13. },
  14. "./components/BaseChart": {
  15. "types": "./dist/src/components/BaseChart.d.ts",
  16. "default": "./dist/src/components/BaseChart.js"
  17. },
  18. "./components/BarChart": {
  19. "types": "./dist/src/components/BarChart.d.ts",
  20. "default": "./dist/src/components/BarChart.js"
  21. },
  22. "./components/CandleChart": {
  23. "types": "./dist/src/components/CandleChart.d.ts",
  24. "default": "./dist/src/components/CandleChart.js"
  25. },
  26. "./components/ColumnChart": {
  27. "types": "./dist/src/components/ColumnChart.d.ts",
  28. "default": "./dist/src/components/ColumnChart.js"
  29. },
  30. "./components/LineChart": {
  31. "types": "./dist/src/components/LineChart.d.ts",
  32. "default": "./dist/src/components/LineChart.js"
  33. },
  34. "./components/PieChart": {
  35. "types": "./dist/src/components/PieChart.d.ts",
  36. "default": "./dist/src/components/PieChart.js"
  37. },
  38. "./components/RadarChart": {
  39. "types": "./dist/src/components/RadarChart.d.ts",
  40. "default": "./dist/src/components/RadarChart.js"
  41. },
  42. "./components/ColumnChartFCExample": {
  43. "types": "./dist/src/components/ColumnChartFCExample.d.ts",
  44. "default": "./dist/src/components/ColumnChartFCExample.js"
  45. },
  46. "./components/PieChartFCExample": {
  47. "types": "./dist/src/components/PieChartFCExample.d.ts",
  48. "default": "./dist/src/components/PieChartFCExample.js"
  49. },
  50. "./components/RingChart": {
  51. "types": "./dist/src/components/RingChart.d.ts",
  52. "default": "./dist/src/components/RingChart.js"
  53. },
  54. "./components/RingChartFCExample": {
  55. "types": "./dist/src/components/RingChartFCExample.d.ts",
  56. "default": "./dist/src/components/RingChartFCExample.js"
  57. }
  58. },
  59. "scripts": {
  60. "clean": "rimraf dist",
  61. "build": "tsc",
  62. "prebuild": "pnpm run clean",
  63. "dev": "tsc --watch",
  64. "typecheck": "tsc --noEmit",
  65. "test": "jest",
  66. "test:watch": "jest --watch",
  67. "test:coverage": "jest --coverage"
  68. },
  69. "dependencies": {
  70. "@tarojs/components": "4.1.4",
  71. "@tarojs/plugin-platform-weapp": "4.1.4",
  72. "@tarojs/react": "4.1.4",
  73. "@tarojs/taro": "4.1.4",
  74. "react": "^18.0.0",
  75. "react-dom": "^18.0.0"
  76. },
  77. "devDependencies": {
  78. "@d8d/mini-testing-utils": "workspace:*",
  79. "@testing-library/jest-dom": "^6.8.0",
  80. "@testing-library/react": "^16.3.0",
  81. "@types/jest": "^29.5.14",
  82. "@types/node": "^18",
  83. "@types/react": "^18.0.0",
  84. "@types/react-dom": "^18.0.0",
  85. "jest": "^30.2.0",
  86. "jest-environment-jsdom": "^29.7.0",
  87. "rimraf": "^6.1.2",
  88. "ts-jest": "^29.4.5",
  89. "typescript": "^5.4.5"
  90. },
  91. "files": [
  92. "dist",
  93. "src"
  94. ],
  95. "keywords": [
  96. "mini",
  97. "charts",
  98. "u-charts",
  99. "taro",
  100. "react",
  101. "canvas"
  102. ],
  103. "author": "D8D Team",
  104. "license": "MIT"
  105. }