From 145001d26e74bc6dccf08ff360e2c03f379c7819 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Sat, 15 Mar 2025 09:43:05 +0000 Subject: [PATCH] chore: Bump typescript version in @calcom/ui (#19766) * chore: Bump typescript version in @calcom/ui * Reduce required types from @calcom/types to just used ones --- packages/platform/atoms/src/components/ui/dialog.tsx | 2 +- packages/ui/package.json | 2 +- packages/ui/tsconfig.json | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/platform/atoms/src/components/ui/dialog.tsx b/packages/platform/atoms/src/components/ui/dialog.tsx index 9e3d69ae5c..ee029027f2 100644 --- a/packages/platform/atoms/src/components/ui/dialog.tsx +++ b/packages/platform/atoms/src/components/ui/dialog.tsx @@ -1,7 +1,7 @@ import * as DialogPrimitive from "@radix-ui/react-dialog"; import * as React from "react"; -import { Icon } from "@calcom/ui"; +import { Icon } from "@calcom/ui/components/icon"; import { cn } from "../../lib/utils"; diff --git a/packages/ui/package.json b/packages/ui/package.json index acf6b10197..158804be88 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -107,6 +107,6 @@ "fs-extra": "^11.2.0", "lucide-static": "^0.424.0", "node-html-parser": "^6.1.13", - "typescript": "^4.9.4" + "typescript": "^5.8.2" } } diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index cf5b665456..91720fc02d 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -5,9 +5,10 @@ "experimentalDecorators": true }, "include": [ - "../../apps/web/next-env.d.ts", - "../types/*.d.ts", - "../types/next-auth.d.ts", + "../types/window.d.ts", + "../types/next.d.ts", + "../types/tanstack-table.d.ts", + "../types/business-days-plugin.d.ts", "**/*.ts", "**/*.tsx" ],