package.json 3.0 KB

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