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

+8
View File
@@ -33,6 +33,14 @@
"web-push": "^3.6.7",
"zustand": "^4.3.2"
},
"peerDependencies": {
"date-fns-tz": "^3.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"stripe": "^9.0.0 || ^15.0.0",
"zod": "^3.0.0"
},
"devDependencies": {
"@testing-library/react-hooks": "^8.0.1",
"@types/web-push": "^3.6.3",
-1
View File
@@ -25,7 +25,6 @@
"lingo.dev": "0.117.14",
"rrule": "^2.7.1",
"sharp": "0.33.5",
"sonner": "^1.7.4",
"tsdav": "2.0.3",
"tslog": "^4.9.2",
"uuid": "^8.3.2"
+1
View File
@@ -92,6 +92,7 @@
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"typescript": "^5.0.0"
},
"main": "./dist/cal-atoms.umd.cjs"
+5
View File
@@ -22,6 +22,11 @@
"superjson": "1.9.1",
"zod": "3.25.76"
},
"peerDependencies": {
"next": ">=14.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
"typescript": "5.9.2"
+3 -1
View File
@@ -91,7 +91,6 @@
"cmk": "^0.1.1",
"date-fns": "^3.6.0",
"downshift": "^6.1.9",
"next-seo": "^6.0.0",
"react": "^18.2.0",
"react-colorful": "^5.6.0",
"react-day-picker": "^8.10.1",
@@ -101,6 +100,9 @@
"tailwind-merge": "^1.13.2",
"uuid": "^11.1.0"
},
"peerDependencies": {
"react-dom": "^18.2.0"
},
"devDependencies": {
"@calcom/config": "workspace:*",
"@calcom/eslint-config": "workspace:*",