chore: remove @calcom/lib/server barrel file (#21190)

This commit is contained in:
Benny Joo
2025-05-08 22:36:30 +05:30
committed by GitHub
parent 3a9e353443
commit f047799299
3 changed files with 3 additions and 12 deletions
@@ -4,14 +4,14 @@ import dayjs from "@calcom/dayjs";
import { buildCalEventFromBooking } from "../buildCalEventFromBooking";
import { parseRecurringEvent } from "../isRecurringEvent";
import { getTranslation } from "../server";
import { getTranslation } from "../server/i18n";
// Mock dependencies
vi.mock("../isRecurringEvent", () => ({
parseRecurringEvent: vi.fn(),
}));
vi.mock("../server", () => ({
vi.mock("../server/i18n", () => ({
getTranslation: vi.fn(),
}));
+1 -1
View File
@@ -3,7 +3,7 @@ import type { Prisma } from "@prisma/client";
import dayjs from "@calcom/dayjs";
import { parseRecurringEvent } from "./isRecurringEvent";
import { getTranslation } from "./server";
import { getTranslation } from "./server/i18n";
type DestinationCalendar = {
id: number;
-9
View File
@@ -1,9 +0,0 @@
export { defaultHandler } from "./defaultHandler";
export { defaultResponder } from "./defaultResponder";
export { getLuckyUser } from "./getLuckyUser";
export { getServerErrorFromUnknown } from "./getServerErrorFromUnknown";
export { getTranslation } from "./i18n";
export { getDefaultLocations } from "./getDefaultLocations";
export { default as perfObserver } from "./perfObserver";
export { getRoutedUrl } from "./getRoutedUrl";
export { getTeamMemberEmailForResponseOrContactUsingUrlQuery } from "./getTeamMemberEmailFromCrm";