From b5a69c72ad696ab9c1de16f2f5769cf18c2c1c54 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Thu, 17 Oct 2024 11:13:22 -0400 Subject: [PATCH] chore: template resolver compiles (#1675) --- .github/workflows/ci.yml | 3 +++ packages/template-resolver/src/ResolutionUtilities.ts | 2 +- packages/template-resolver/src/SnippetTemplateResolver.ts | 2 +- packages/template-resolver/src/UnionResolver.ts | 2 +- .../src/__test__/unit-tests/assets/imdbApiDefinition.ts | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efd9e9aada..ff53a1d76d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: WORKOS_API_KEY: ${{ secrets.WORKOS_API_KEY }} WORKOS_CLIENT_ID: ${{ secrets.WORKOS_CLIENT_ID }} + - name: Compile Template Resolver + run: pnpm --filter=@fern-api/template-resolver compile:cjs + - name: Check dependencies run: pnpm depcheck diff --git a/packages/template-resolver/src/ResolutionUtilities.ts b/packages/template-resolver/src/ResolutionUtilities.ts index 435ddbe348..5c4fc99dce 100644 --- a/packages/template-resolver/src/ResolutionUtilities.ts +++ b/packages/template-resolver/src/ResolutionUtilities.ts @@ -1,4 +1,4 @@ -import { APIV1Read } from "@fern-api/fdr-sdk/client/types"; +import { APIV1Read } from "@fern-api/fdr-sdk"; export class ObjectFlattener { private flattenedObjects: Map = new Map< diff --git a/packages/template-resolver/src/SnippetTemplateResolver.ts b/packages/template-resolver/src/SnippetTemplateResolver.ts index 36305b0de5..733de682b5 100644 --- a/packages/template-resolver/src/SnippetTemplateResolver.ts +++ b/packages/template-resolver/src/SnippetTemplateResolver.ts @@ -1,5 +1,5 @@ import type { FdrClient } from "@fern-api/fdr-sdk"; -import { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk/client/types"; +import { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk"; import { ObjectFlattener } from "./ResolutionUtilities"; import { UnionMatcher } from "./UnionResolver"; import { accessByPathNonNull } from "./accessByPath"; diff --git a/packages/template-resolver/src/UnionResolver.ts b/packages/template-resolver/src/UnionResolver.ts index 92ce222688..94a4165753 100644 --- a/packages/template-resolver/src/UnionResolver.ts +++ b/packages/template-resolver/src/UnionResolver.ts @@ -1,4 +1,4 @@ -import type { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk/client/types"; +import type { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk"; import { ObjectFlattener } from "./ResolutionUtilities"; import { accessByPathNonNull } from "./accessByPath"; import { isPlainObject } from "./isPlainObject"; diff --git a/packages/template-resolver/src/__test__/unit-tests/assets/imdbApiDefinition.ts b/packages/template-resolver/src/__test__/unit-tests/assets/imdbApiDefinition.ts index 39784cc99a..b429972f0b 100644 --- a/packages/template-resolver/src/__test__/unit-tests/assets/imdbApiDefinition.ts +++ b/packages/template-resolver/src/__test__/unit-tests/assets/imdbApiDefinition.ts @@ -1,4 +1,4 @@ -import { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk/client/types"; +import { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk"; export const IMDB_API_DEFINITION: APIV1Read.ApiDefinition = { id: FdrAPI.ApiDefinitionId("api_imdb"),