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:
authored and GitHub committed 2025-05-13 21:55:58 -04:00
1 parent 7e699ab810
commit 3bc9fa11d0
27 files changed
+44 -32

No files matched your search

+2 -1
View File
@@ -4,10 +4,11 @@ import { Prisma } from "@prisma/client";
import { getLocationGroupedOptions } from "@calcom/app-store/server";
import { getEventTypeAppData } from "@calcom/app-store/utils";
import { getBookingFieldsWithSystemFields } from "@calcom/features/bookings/lib/getBookingFields";
import { parseRecurringEvent, parseEventTypeColor } from "@calcom/lib";
import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
import { parseBookingLimit } from "@calcom/lib/intervalLimits/isBookingLimits";
import { parseDurationLimit } from "@calcom/lib/intervalLimits/isDurationLimits";
import { parseEventTypeColor } from "@calcom/lib/isEventTypeColor";
import { parseRecurringEvent } from "@calcom/lib/isRecurringEvent";
import type { LocationObject } from "@calcom/lib/location";
import { getTranslation } from "@calcom/lib/server/i18n";
import { EventTypeRepository } from "@calcom/lib/server/repository/eventType";
-4
View File
@@ -1,4 +0,0 @@
export { default as isPrismaObj, isPrismaObjOrUndefined } from "./isPrismaObj";
export * from "./isRecurringEvent";
export * from "./isEventTypeColor";
export * from "./event-types";
-2
View File
@@ -3,8 +3,6 @@
"private": true,
"sideEffects": false,
"version": "0.0.0",
"main": "./index.ts",
"types": "./index.ts",
"license": "MIT",
"scripts": {
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",
+2 -1
View File
@@ -1,7 +1,8 @@
import { workflowSelect } from "@calcom/ee/workflows/lib/getAllWorkflows";
import { getCalEventResponses } from "@calcom/features/bookings/lib/getCalEventResponses";
import { isPrismaObjOrUndefined, parseRecurringEvent } from "@calcom/lib";
import { HttpError as HttpCode } from "@calcom/lib/http-error";
import { isPrismaObjOrUndefined } from "@calcom/lib/isPrismaObj";
import { parseRecurringEvent } from "@calcom/lib/isRecurringEvent";
import { getTranslation } from "@calcom/lib/server/i18n";
import { getTimeFormatStringFromUserTimeFormat } from "@calcom/lib/timeFormat";
import { bookingMinimalSelect, prisma } from "@calcom/prisma";