package.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. },
  50. "scripts": {
  51. "build": "tsc",
  52. "dev": "tsc --watch",
  53. "typecheck": "tsc --noEmit",
  54. "test": "jest",
  55. "test:watch": "jest --watch",
  56. "test:coverage": "jest --coverage"
  57. },
  58. "dependencies": {
  59. "@tarojs/components": "4.1.4",
  60. "@tarojs/plugin-platform-weapp": "4.1.4",
  61. "@tarojs/react": "4.1.4",
  62. "@tarojs/taro": "4.1.4",
  63. "react": "^18.0.0",
  64. "react-dom": "^18.0.0"
  65. },
  66. "devDependencies": {
  67. "@d8d/mini-testing-utils": "workspace:*",
  68. "@testing-library/jest-dom": "^6.8.0",
  69. "@testing-library/react": "^16.3.0",
  70. "@types/jest": "^29.5.14",
  71. "@types/node": "^18",
  72. "@types/react": "^18.0.0",
  73. "@types/react-dom": "^18.0.0",
  74. "jest": "^30.2.0",
  75. "jest-environment-jsdom": "^29.7.0",
  76. "ts-jest": "^29.4.5",
  77. "typescript": "^5.4.5"
  78. },
  79. "files": [
  80. "src"
  81. ],
  82. "keywords": [
  83. "mini",
  84. "charts",
  85. "u-charts",
  86. "taro",
  87. "react",
  88. "canvas"
  89. ],
  90. "author": "D8D Team",
  91. "license": "MIT"
  92. }