chore: remove @calcom/lib barrel file (#21267)
* refactor: replace imports from @calcom/lib barrel file with direct imports Co-Authored-By: [email protected] <[email protected]> * fix: add deprecated barrel file with warning to support tests Co-Authored-By: [email protected] <[email protected]> * remove barrel file * fix: restore barrel file with deprecation notice and add CreditType enum export Co-Authored-By: [email protected] <[email protected]> * fix: add CreditType enum definition to barrel file Co-Authored-By: [email protected] <[email protected]> * fix: add mock for CreditType enum in credit-service test Co-Authored-By: [email protected] <[email protected]> * fix: use importOriginal in CreditType enum mock Co-Authored-By: [email protected] <[email protected]> * fix: remove barrel file completely Co-Authored-By: [email protected] <[email protected]> * fix: restore barrel file with deprecation notice to support tests Co-Authored-By: [email protected] <[email protected]> * fix: update test-setup to use direct import from @calcom/ui/classNames Co-Authored-By: [email protected] <[email protected]> * fix: completely remove barrel file Co-Authored-By: [email protected] <[email protected]> * fix: update package.json to remove references to index.ts Co-Authored-By: [email protected] <[email protected]> * fix: remove main and types fields from package.json Co-Authored-By: [email protected] <[email protected]> * fix: restore barrel file with deprecation notice to support tests Co-Authored-By: [email protected] <[email protected]> * remove barrel file * fix --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: hbjORbj <[email protected]>
This commit is contained in:
27 files changed
+44
-32
No files matched your search
@@ -5,8 +5,8 @@ import { z } from "zod";
|
||||
import { orgDomainConfig } from "@calcom/ee/organizations/lib/orgDomains";
|
||||
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
|
||||
import getBookingInfo from "@calcom/features/bookings/lib/getBookingInfo";
|
||||
import { parseRecurringEvent } from "@calcom/lib";
|
||||
import { getDefaultEvent } from "@calcom/lib/defaultEvents";
|
||||
import { parseRecurringEvent } from "@calcom/lib/isRecurringEvent";
|
||||
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
|
||||
import { maybeGetBookingUidFromSeat } from "@calcom/lib/server/maybeGetBookingUidFromSeat";
|
||||
import { BookingRepository } from "@calcom/lib/server/repository/booking";
|
||||
|
||||
@@ -15,7 +15,6 @@ import { EventTypeDescription } from "@calcom/features/eventtypes/components";
|
||||
import CreateEventTypeDialog from "@calcom/features/eventtypes/components/CreateEventTypeDialog";
|
||||
import { DuplicateDialog } from "@calcom/features/eventtypes/components/DuplicateDialog";
|
||||
import { InfiniteSkeletonLoader } from "@calcom/features/eventtypes/components/SkeletonLoader";
|
||||
import { parseEventTypeColor } from "@calcom/lib";
|
||||
import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants";
|
||||
import { useCopy } from "@calcom/lib/hooks/useCopy";
|
||||
import { useDebounce } from "@calcom/lib/hooks/useDebounce";
|
||||
@@ -24,6 +23,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { useGetTheme } from "@calcom/lib/hooks/useTheme";
|
||||
import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery";
|
||||
import { HttpError } from "@calcom/lib/http-error";
|
||||
import { parseEventTypeColor } from "@calcom/lib/isEventTypeColor";
|
||||
import type { MembershipRole } from "@calcom/prisma/enums";
|
||||
import { SchedulingType } from "@calcom/prisma/enums";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
|
||||
Reference in new issue
Block a user