package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. },
  60. "scripts": {
  61. "clean": "rimraf dist",
  62. "build": "tsc && pnpm run copy-assets",
  63. "prebuild": "pnpm run clean",
  64. "copy-assets": "mkdir -p dist/src/lib && cp src/lib/u-charts-original.js dist/src/lib/",
  65. "dev": "tsc --watch",
  66. "typecheck": "tsc --noEmit",
  67. "test": "jest",
  68. "test:watch": "jest --watch",
  69. "test:coverage": "jest --coverage"
  70. },
  71. "dependencies": {
  72. "@tarojs/components": "4.1.4",
  73. "@tarojs/plugin-platform-weapp": "4.1.4",
  74. "@tarojs/react": "4.1.4",
  75. "@tarojs/taro": "4.1.4",
  76. "react": "^18.0.0",
  77. "react-dom": "^18.0.0"
  78. },
  79. "devDependencies": {
  80. "@d8d/mini-testing-utils": "workspace:*",
  81. "@testing-library/jest-dom": "^6.8.0",
  82. "@testing-library/react": "^16.3.0",
  83. "@types/jest": "^29.5.14",
  84. "@types/node": "^18",
  85. "@types/react": "^18.0.0",
  86. "@types/react-dom": "^18.0.0",
  87. "jest": "^30.2.0",
  88. "jest-environment-jsdom": "^29.7.0",
  89. "rimraf": "^6.1.2",
  90. "ts-jest": "^29.4.5",
  91. "typescript": "^5.4.5"
  92. },
  93. "files": [
  94. "src"
  95. ],
  96. "keywords": [
  97. "mini",
  98. "charts",
  99. "u-charts",
  100. "taro",
  101. "react",
  102. "canvas"
  103. ],
  104. "author": "D8D Team",
  105. "license": "MIT"
  106. }