package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/BaseChartLegacy": {
  50. "types": "./dist/src/components/BaseChartLegacy.d.ts",
  51. "import": "./dist/src/components/BaseChartLegacy.js",
  52. "require": "./dist/src/components/BaseChartLegacy.js"
  53. },
  54. "./components/ColumnChartLegacy": {
  55. "types": "./dist/src/components/ColumnChartLegacy.d.ts",
  56. "import": "./dist/src/components/ColumnChartLegacy.js",
  57. "require": "./dist/src/components/ColumnChartLegacy.js"
  58. },
  59. "./components/BaseChartOriginal2D": {
  60. "types": "./dist/src/components/BaseChartOriginal2D.d.ts",
  61. "import": "./dist/src/components/BaseChartOriginal2D.js",
  62. "require": "./dist/src/components/BaseChartOriginal2D.js"
  63. },
  64. "./components/ColumnChartOriginal2D": {
  65. "types": "./dist/src/components/ColumnChartOriginal2D.d.ts",
  66. "import": "./dist/src/components/ColumnChartOriginal2D.js",
  67. "require": "./dist/src/components/ColumnChartOriginal2D.js"
  68. },
  69. "./components/ColumnChartFCExample": {
  70. "types": "./dist/src/components/ColumnChartFCExample.d.ts",
  71. "import": "./dist/src/components/ColumnChartFCExample.js",
  72. "require": "./dist/src/components/ColumnChartFCExample.js"
  73. }
  74. },
  75. "scripts": {
  76. "clean": "rimraf dist",
  77. "build": "tsc && pnpm run copy-assets",
  78. "prebuild": "pnpm run clean",
  79. "copy-assets": "mkdir -p dist/src/lib && cp src/lib/u-charts-original.js dist/src/lib/",
  80. "dev": "tsc --watch",
  81. "typecheck": "tsc --noEmit",
  82. "test": "jest",
  83. "test:watch": "jest --watch",
  84. "test:coverage": "jest --coverage"
  85. },
  86. "dependencies": {
  87. "@tarojs/components": "4.1.4",
  88. "@tarojs/plugin-platform-weapp": "4.1.4",
  89. "@tarojs/react": "4.1.4",
  90. "@tarojs/taro": "4.1.4",
  91. "react": "^18.0.0",
  92. "react-dom": "^18.0.0"
  93. },
  94. "devDependencies": {
  95. "@d8d/mini-testing-utils": "workspace:*",
  96. "@testing-library/jest-dom": "^6.8.0",
  97. "@testing-library/react": "^16.3.0",
  98. "@types/jest": "^29.5.14",
  99. "@types/node": "^18",
  100. "@types/react": "^18.0.0",
  101. "@types/react-dom": "^18.0.0",
  102. "jest": "^30.2.0",
  103. "jest-environment-jsdom": "^29.7.0",
  104. "rimraf": "^6.1.2",
  105. "ts-jest": "^29.4.5",
  106. "typescript": "^5.4.5"
  107. },
  108. "files": [
  109. "src"
  110. ],
  111. "keywords": [
  112. "mini",
  113. "charts",
  114. "u-charts",
  115. "taro",
  116. "react",
  117. "canvas"
  118. ],
  119. "author": "D8D Team",
  120. "license": "MIT"
  121. }