diff --git a/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts b/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts index 952e2c135f..05a9e16210 100644 --- a/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts +++ b/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts @@ -1,6 +1,6 @@ -import { kebabCase, titleCase } from "@/utils"; import isEqual from "fast-deep-equal"; import { APIV1Db, APIV1Read, APIV1Write, FdrAPI } from "../../client"; +import { kebabCase, titleCase } from "../../utils"; import { WithoutQuestionMarks } from "../utils/WithoutQuestionMarks"; import { assertNever } from "../utils/assertNever"; import { diff --git a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts index cd97164d37..8e7a5b577c 100644 --- a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts +++ b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts @@ -1,4 +1,3 @@ -import { kebabCase } from "@/utils"; import { DocsV1Db, DocsV1Read, @@ -10,6 +9,7 @@ import { visitWriteNavigationConfig, } from "../../client"; import { isNavigationTabLink } from "../../client/visitNavigationTab"; +import { kebabCase } from "../../utils"; import { type WithoutQuestionMarks } from "../utils/WithoutQuestionMarks"; import { assertNever } from "../utils/assertNever"; import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors"; diff --git a/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts b/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts index 0ad9a477d2..0e5dac153d 100644 --- a/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts +++ b/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts @@ -1,5 +1,5 @@ -import { isPlainObject } from "@/utils"; import { DocsV1Db } from "../../../client"; +import { isPlainObject } from "../../../utils"; import { upgradeV1ToV2 } from "./upgradeV1ToV2"; import { upgradeV2ToV3 } from "./upgradeV2ToV3"; diff --git a/packages/fdr-sdk/src/converters/db/upgrade/upgradeV2ToV3.ts b/packages/fdr-sdk/src/converters/db/upgrade/upgradeV2ToV3.ts index 183e11ad88..3aa8d1a736 100644 --- a/packages/fdr-sdk/src/converters/db/upgrade/upgradeV2ToV3.ts +++ b/packages/fdr-sdk/src/converters/db/upgrade/upgradeV2ToV3.ts @@ -1,5 +1,5 @@ -import { mapValues } from "@/utils"; import { DocsV1Db } from "../../../client"; +import { mapValues } from "../../../utils"; export function upgradeV2ToV3(v2: DocsV1Db.DocsDefinitionDb.V2): DocsV1Db.DocsDefinitionDb.V3 { return { diff --git a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts index f84b22e0ea..78eb4f10b7 100644 --- a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts +++ b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts @@ -1,7 +1,7 @@ -import { kebabCase } from "@/utils"; import tinycolor from "tinycolor2"; import { DocsV1Db, DocsV1Read, visitDbNavigationConfig, visitUnversionedDbNavigationConfig } from "../../client"; import { visitDbNavigationTab } from "../../client/visitNavigationTab"; +import { kebabCase } from "../../utils"; import { WithoutQuestionMarks } from "../utils/WithoutQuestionMarks"; import { assertNever } from "../utils/assertNever"; import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors"; diff --git a/packages/fdr-sdk/src/navigation/NodeCollector.ts b/packages/fdr-sdk/src/navigation/NodeCollector.ts index 64fa2581bf..e8c56ddfdf 100644 --- a/packages/fdr-sdk/src/navigation/NodeCollector.ts +++ b/packages/fdr-sdk/src/navigation/NodeCollector.ts @@ -1,5 +1,5 @@ -import { once } from "@/utils"; import urljoin from "url-join"; +import { once } from "../utils"; import { FernNavigation } from "./generated"; import { NavigationNode, diff --git a/packages/fdr-sdk/src/navigation/converters/ApiReferenceNavigationConverter.ts b/packages/fdr-sdk/src/navigation/converters/ApiReferenceNavigationConverter.ts index 97b005777f..10b21cc6f9 100644 --- a/packages/fdr-sdk/src/navigation/converters/ApiReferenceNavigationConverter.ts +++ b/packages/fdr-sdk/src/navigation/converters/ApiReferenceNavigationConverter.ts @@ -1,6 +1,6 @@ -import { noop, titleCase, visitDiscriminatedUnion } from "@/utils"; import urljoin from "url-join"; import { APIV1Read, DocsV1Read } from "../../client"; +import { noop, titleCase, visitDiscriminatedUnion } from "../../utils"; import { ApiDefinitionHolder } from "../ApiDefinitionHolder"; import { FernNavigation } from "../generated"; import { followRedirects } from "../utils"; diff --git a/packages/fdr-sdk/src/navigation/converters/NavigationConfigConverter.ts b/packages/fdr-sdk/src/navigation/converters/NavigationConfigConverter.ts index 332b3bce06..39bcce046d 100644 --- a/packages/fdr-sdk/src/navigation/converters/NavigationConfigConverter.ts +++ b/packages/fdr-sdk/src/navigation/converters/NavigationConfigConverter.ts @@ -1,6 +1,6 @@ -import { assertNever, kebabCase, visitDiscriminatedUnion } from "@/utils"; import urljoin from "url-join"; import { APIV1Read, DocsV1Read, visitReadNavigationConfig, visitUnversionedReadNavigationConfig } from "../../client"; +import { assertNever, kebabCase, visitDiscriminatedUnion } from "../../utils"; import { FernNavigation } from "../generated"; import { followRedirect, followRedirects } from "../utils"; import { convertAvailability } from "../utils/convertAvailability"; diff --git a/packages/fdr-sdk/src/navigation/utils/convertAvailability.ts b/packages/fdr-sdk/src/navigation/utils/convertAvailability.ts index f5ef791f60..2167be100e 100644 --- a/packages/fdr-sdk/src/navigation/utils/convertAvailability.ts +++ b/packages/fdr-sdk/src/navigation/utils/convertAvailability.ts @@ -1,5 +1,5 @@ -import { assertNever } from "@/utils"; import { APIV1Read, DocsV1Read } from "../../client"; +import { assertNever } from "../../utils"; import { FernNavigation } from "../generated"; export function convertAvailability( diff --git a/packages/fdr-sdk/src/navigation/utils/convertLoadDocsForUrlResponse.ts b/packages/fdr-sdk/src/navigation/utils/convertLoadDocsForUrlResponse.ts index dab82992bf..10bcca8baa 100644 --- a/packages/fdr-sdk/src/navigation/utils/convertLoadDocsForUrlResponse.ts +++ b/packages/fdr-sdk/src/navigation/utils/convertLoadDocsForUrlResponse.ts @@ -1,5 +1,5 @@ -import { mapValues } from "@/utils"; import { APIV1Read, DocsV2Read } from "../../client"; +import { mapValues } from "../../utils"; import { NavigationConfigConverter } from "../converters/NavigationConfigConverter"; export function convertLoadDocsForUrlResponse(response: DocsV2Read.LoadDocsForUrlResponse) { diff --git a/packages/fdr-sdk/src/navigation/utils/findNode.ts b/packages/fdr-sdk/src/navigation/utils/findNode.ts index f3da45d9e6..9455f1fe57 100644 --- a/packages/fdr-sdk/src/navigation/utils/findNode.ts +++ b/packages/fdr-sdk/src/navigation/utils/findNode.ts @@ -1,4 +1,4 @@ -import { noop, visitDiscriminatedUnion } from "@/utils"; +import { noop, visitDiscriminatedUnion } from "../../utils"; import urljoin from "url-join"; import { NodeCollector } from "../NodeCollector"; diff --git a/packages/fdr-sdk/src/navigation/utils/followRedirect.ts b/packages/fdr-sdk/src/navigation/utils/followRedirect.ts index 2947e0da03..374a4a987d 100644 --- a/packages/fdr-sdk/src/navigation/utils/followRedirect.ts +++ b/packages/fdr-sdk/src/navigation/utils/followRedirect.ts @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@/utils"; +import { visitDiscriminatedUnion } from "../../utils"; import { FernNavigation } from "../generated"; import { NavigationNode } from "../types/NavigationNode"; diff --git a/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts b/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts index 33533cba3a..ea58c4274a 100644 --- a/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts +++ b/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@/utils"; +import { visitDiscriminatedUnion } from "../../utils"; import { FernNavigation } from "../generated"; import { NavigationNode } from "../types/NavigationNode"; diff --git a/packages/fdr-sdk/src/navigation/utils/getPageId.ts b/packages/fdr-sdk/src/navigation/utils/getPageId.ts index 5bd5e37e65..ecfabf190d 100644 --- a/packages/fdr-sdk/src/navigation/utils/getPageId.ts +++ b/packages/fdr-sdk/src/navigation/utils/getPageId.ts @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@/utils"; +import { visitDiscriminatedUnion } from "../../utils"; import { FernNavigation } from "../generated"; import { NavigationNodePage } from "../types"; diff --git a/packages/fdr-sdk/src/navigation/utils/traverseNavigation.ts b/packages/fdr-sdk/src/navigation/utils/traverseNavigation.ts index 29b5d24ac4..f97fd750cd 100644 --- a/packages/fdr-sdk/src/navigation/utils/traverseNavigation.ts +++ b/packages/fdr-sdk/src/navigation/utils/traverseNavigation.ts @@ -1,4 +1,4 @@ -import { noop, visitDiscriminatedUnion } from "@/utils"; +import { noop, visitDiscriminatedUnion } from "../../utils"; import { NavigationNode } from "../types/NavigationNode"; diff --git a/packages/fdr-sdk/tsconfig.json b/packages/fdr-sdk/tsconfig.json index 273150eb04..4cc214d5d3 100644 --- a/packages/fdr-sdk/tsconfig.json +++ b/packages/fdr-sdk/tsconfig.json @@ -5,10 +5,7 @@ "isolatedModules": false, "lib": ["ESNext", "DOM"], "outDir": "./dist", - "rootDir": "./src", - "paths": { - "@/*": ["./src/*"] - } + "rootDir": "./src" }, "include": ["./src/**/*"] }