fix: address peer dependency issues across the monorepo (#26105)

MOVE:
- Move @next/third-parties from root to apps/web (only used there)
- Remove date-fns-tz from root, add date-fns and date-fns-tz to root deps

REMOVE:
- Remove sonner from packages/lib (not used there, already in apps/web)
- Remove next-seo from packages/ui (not used there, already in apps/web)
- Remove next-auth from apps/api/v2 (only used for User type in tests)

ADD peerDependencies:
- packages/ui: add react-dom
- packages/features: add react, react-dom, react-is, date-fns-tz, stripe, zod
- packages/platform/atoms: add react-dom
- packages/trpc: add next, react, react-dom

ADD dependencies:
- apps/web: add @next/third-parties, i18next, react-i18next
- apps/api/v2: add axios (required by @nestjs/axios)

FIX:
- apps/api/v2: replace next-auth User type with @calcom/prisma/client User

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Volnei MunhozandDevin AI authored and GitHub committed 2025-12-21 23:20:49 +00:00
1 parent 0673d667f8
commit 40883386f0
10 files changed
+68 -10

No files matched your search

+3
View File
@@ -61,6 +61,7 @@
"@hookform/resolvers": "^2.9.7",
"@next-auth/prisma-adapter": "^1.0.4",
"@next/bundle-analyzer": "^16.1.0",
"@next/third-parties": "^14.2.5",
"@prisma/nextjs-monorepo-workaround-plugin": "^6.16.1",
"@radix-ui/react-avatar": "1.1.3",
"@radix-ui/react-collapsible": "^1.0.0",
@@ -93,6 +94,7 @@
"entities": "4.5.0",
"gray-matter": "^4.0.3",
"handlebars": "^4.7.7",
"i18next": "^23.2.3",
"ical.js": "^1.4.0",
"ics": "^2.37.0",
"isbot": "^5.1.30",
@@ -129,6 +131,7 @@
"react-dom": "18.2.0",
"react-easy-crop": "^3.5.2",
"react-hook-form": "^7.43.3",
"react-i18next": "^12.3.1",
"react-live-chat-loader": "^2.8.1",
"react-multi-email": "^0.5.3",
"react-phone-input-2": "^2.15.1",