package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. {
  2. "name": "@d8d/mini-shared-ui-components",
  3. "version": "1.0.0",
  4. "type": "module",
  5. "description": "Taro共享UI组件包",
  6. "main": "src/index.ts",
  7. "types": "src/index.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./src/index.ts",
  11. "import": "./src/index.ts",
  12. "require": "./src/index.ts"
  13. },
  14. "./button": {
  15. "types": "./src/button.tsx",
  16. "import": "./src/button.tsx",
  17. "require": "./src/button.tsx"
  18. },
  19. "./avatar-upload": {
  20. "types": "./src/avatar-upload.tsx",
  21. "import": "./src/avatar-upload.tsx",
  22. "require": "./src/avatar-upload.tsx"
  23. },
  24. "./card": {
  25. "types": "./src/card.tsx",
  26. "import": "./src/card.tsx",
  27. "require": "./src/card.tsx"
  28. },
  29. "./dialog": {
  30. "types": "./src/dialog.tsx",
  31. "import": "./src/dialog.tsx",
  32. "require": "./src/dialog.tsx"
  33. },
  34. "./form": {
  35. "types": "./src/form.tsx",
  36. "import": "./src/form.tsx",
  37. "require": "./src/form.tsx"
  38. },
  39. "./image": {
  40. "types": "./src/image.tsx",
  41. "import": "./src/image.tsx",
  42. "require": "./src/image.tsx"
  43. },
  44. "./input": {
  45. "types": "./src/input.tsx",
  46. "import": "./src/input.tsx",
  47. "require": "./src/input.tsx"
  48. },
  49. "./label": {
  50. "types": "./src/label.tsx",
  51. "import": "./src/label.tsx",
  52. "require": "./src/label.tsx"
  53. },
  54. "./navbar": {
  55. "types": "./src/navbar.tsx",
  56. "import": "./src/navbar.tsx",
  57. "require": "./src/navbar.tsx"
  58. },
  59. "./page-container": {
  60. "types": "./src/page-container.tsx",
  61. "import": "./src/page-container.tsx",
  62. "require": "./src/page-container.tsx"
  63. },
  64. "./tab-bar": {
  65. "types": "./src/tab-bar.tsx",
  66. "import": "./src/tab-bar.tsx",
  67. "require": "./src/tab-bar.tsx"
  68. },
  69. "./user-status-bar": {
  70. "types": "./src/user-status-bar.tsx",
  71. "import": "./src/user-status-bar.tsx",
  72. "require": "./src/user-status-bar.tsx"
  73. },
  74. "./utils/cn": {
  75. "types": "./src/utils/cn.ts",
  76. "import": "./src/utils/cn.ts",
  77. "require": "./src/utils/cn.ts"
  78. },
  79. "./utils/platform": {
  80. "types": "./src/utils/platform.ts",
  81. "import": "./src/utils/platform.ts",
  82. "require": "./src/utils/platform.ts"
  83. },
  84. "./utils/rpc/rpc-client": {
  85. "types": "./src/utils/rpc/rpc-client.ts",
  86. "import": "./src/utils/rpc/rpc-client.ts",
  87. "require": "./src/utils/rpc/rpc-client.ts"
  88. },
  89. "./utils/rpc/response-polyfill": {
  90. "types": "./src/utils/rpc/response-polyfill.ts",
  91. "import": "./src/utils/rpc/response-polyfill.ts",
  92. "require": "./src/utils/rpc/response-polyfill.ts"
  93. },
  94. "./utils/rpc/headers-polyfill": {
  95. "types": "./src/utils/rpc/headers-polyfill.ts",
  96. "import": "./src/utils/rpc/headers-polyfill.ts",
  97. "require": "./src/utils/rpc/headers-polyfill.ts"
  98. },
  99. "./testing": {
  100. "types": "./testing/index.ts",
  101. "import": "./testing/index.ts",
  102. "require": "./testing/index.ts"
  103. }
  104. },
  105. "scripts": {
  106. "build": "tsc",
  107. "dev": "tsc --watch",
  108. "typecheck": "tsc --noEmit",
  109. "test": "jest",
  110. "test:watch": "jest --watch",
  111. "test:coverage": "jest --coverage",
  112. "test:components": "jest tests/components"
  113. },
  114. "dependencies": {
  115. "@tarojs/components": "4.1.4",
  116. "@tarojs/react": "4.1.4",
  117. "@tarojs/taro": "4.1.4",
  118. "@radix-ui/react-slot": "^1.2.3",
  119. "class-variance-authority": "^0.7.1",
  120. "clsx": "^2.1.1",
  121. "react": "^18.0.0",
  122. "react-dom": "^18.0.0",
  123. "react-hook-form": "^7.62.0",
  124. "@weapp-tailwindcss/merge": "^1.2.3",
  125. "hono": "4.8.5"
  126. },
  127. "devDependencies": {
  128. "@testing-library/jest-dom": "^6.8.0",
  129. "@testing-library/react": "^16.3.0",
  130. "@testing-library/user-event": "^14.6.1",
  131. "@types/jest": "^29.5.14",
  132. "@types/node": "^18",
  133. "@types/react": "^18.0.0",
  134. "@types/react-dom": "^18.0.0",
  135. "jest": "^30.2.0",
  136. "jest-environment-jsdom": "^29.7.0",
  137. "ts-jest": "^29.4.5",
  138. "typescript": "^5.4.5"
  139. },
  140. "files": [
  141. "src",
  142. "testing"
  143. ]
  144. }