package.json 3.7 KB

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