package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "name": "@d8d/mini-enterprise-auth-ui",
  3. "version": "1.0.0",
  4. "type": "module",
  5. "description": "企业认证UI包 - 提供企业用户认证相关的React hooks和上下文",
  6. "main": "dist/index.js",
  7. "source": "src/index.ts",
  8. "types": "dist/index.d.ts",
  9. "exports": {
  10. ".": {
  11. "types": "./dist/src/index.d.ts",
  12. "import": "./dist/src/index.js",
  13. "require": "./dist/src/index.js"
  14. },
  15. "./hooks": {
  16. "types": "./dist/src/hooks/index.d.ts",
  17. "import": "./dist/src/hooks/index.js",
  18. "require": "./dist/src/hooks/index.js"
  19. },
  20. "./api": {
  21. "types": "./src/api/index.ts",
  22. "import": "./src/api/index.ts",
  23. "require": "./src/api/index.ts"
  24. },
  25. "./types/minio": {
  26. "types": "./src/types/minio.ts",
  27. "import": "./src/types/minio.ts",
  28. "require": "./src/types/minio.ts"
  29. },
  30. "./pages/login/Login": {
  31. "types": "./dist/src/pages/login/Login.d.ts",
  32. "import": "./dist/src/pages/login/Login.js",
  33. "require": "./dist/src/pages/login/Login.js"
  34. },
  35. "./pages/login/Login.config": {
  36. "types": "./dist/src/pages/login/Login.config.d.ts",
  37. "import": "./dist/src/pages/login/Login.config.js",
  38. "require": "./dist/src/pages/login/Login.config.js"
  39. },
  40. "./pages/profile/Profile": {
  41. "types": "./dist/src/pages/profile/Profile.d.ts",
  42. "import": "./dist/src/pages/profile/Profile.js",
  43. "require": "./dist/src/pages/profile/Profile.js"
  44. },
  45. "./pages/login/Login.css": {
  46. "import": "./src/pages/login/Login.css"
  47. }
  48. },
  49. "scripts": {
  50. "clean": "rimraf dist",
  51. "build": "tsc",
  52. "prebuild": "pnpm run clean",
  53. "dev": "tsc --watch",
  54. "typecheck": "tsc --noEmit",
  55. "test": "jest",
  56. "test:watch": "jest --watch",
  57. "test:coverage": "jest --coverage"
  58. },
  59. "dependencies": {
  60. "@d8d/auth-module": "workspace:*",
  61. "@d8d/mini-shared-ui-components": "workspace:*",
  62. "@d8d/yongren-shared-ui": "workspace:*",
  63. "@hookform/resolvers": "^3.10.0",
  64. "@tanstack/react-query": "^5.90.12",
  65. "@tarojs/components": "4.1.4",
  66. "@tarojs/plugin-platform-weapp": "4.1.4",
  67. "@tarojs/react": "4.1.4",
  68. "@tarojs/taro": "4.1.4",
  69. "hono": "^4.7.3",
  70. "react": "^18.0.0",
  71. "react-dom": "^18.0.0",
  72. "react-hook-form": "^7.55.0",
  73. "zod": "^3.24.2"
  74. },
  75. "devDependencies": {
  76. "@d8d/mini-testing-utils": "workspace:*",
  77. "@testing-library/jest-dom": "^6.8.0",
  78. "@testing-library/react": "^16.3.0",
  79. "@testing-library/user-event": "^14.6.1",
  80. "@types/jest": "^29.5.14",
  81. "@types/node": "^18",
  82. "@types/react": "^18.0.0",
  83. "@types/react-dom": "^18.0.0",
  84. "jest": "^30.2.0",
  85. "jest-environment-jsdom": "^29.7.0",
  86. "rimraf": "^6.1.2",
  87. "ts-jest": "^29.4.5",
  88. "typescript": "^5.4.5"
  89. },
  90. "files": [
  91. "src"
  92. ],
  93. "keywords": [
  94. "auth",
  95. "enterprise",
  96. "hooks",
  97. "mini",
  98. "taro",
  99. "react"
  100. ],
  101. "author": "D8D Team",
  102. "license": "MIT"
  103. }