package.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. "./testing": {
  15. "types": "./testing/index.ts",
  16. "import": "./testing/index.ts",
  17. "require": "./testing/index.ts"
  18. }
  19. },
  20. "scripts": {
  21. "build": "tsc",
  22. "dev": "tsc --watch",
  23. "typecheck": "tsc --noEmit",
  24. "test": "jest",
  25. "test:watch": "jest --watch",
  26. "test:coverage": "jest --coverage",
  27. "test:components": "jest tests/components"
  28. },
  29. "dependencies": {
  30. "@tarojs/components": "4.1.4",
  31. "@tarojs/react": "4.1.4",
  32. "@tarojs/taro": "4.1.4",
  33. "@radix-ui/react-slot": "^1.2.3",
  34. "class-variance-authority": "^0.7.1",
  35. "clsx": "^2.1.1",
  36. "react": "^18.0.0",
  37. "react-dom": "^18.0.0",
  38. "react-hook-form": "^7.62.0",
  39. "@weapp-tailwindcss/merge": "^1.2.3"
  40. },
  41. "devDependencies": {
  42. "@testing-library/jest-dom": "^6.8.0",
  43. "@testing-library/react": "^16.3.0",
  44. "@testing-library/user-event": "^14.6.1",
  45. "@types/jest": "^29.5.14",
  46. "@types/node": "^18",
  47. "@types/react": "^18.0.0",
  48. "@types/react-dom": "^18.0.0",
  49. "jest": "^30.2.0",
  50. "jest-environment-jsdom": "^29.7.0",
  51. "ts-jest": "^29.4.5",
  52. "typescript": "^5.4.5"
  53. },
  54. "files": [
  55. "src",
  56. "testing"
  57. ]
  58. }