Skip to content

Commit

Permalink
chore: template resolver compiles (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Oct 17, 2024
1 parent c5041b7 commit b5a69c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/template-resolver/src/ResolutionUtilities.ts
Original file line number Diff line number Diff line change
@@ -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<APIV1Read.TypeId, APIV1Read.ObjectProperty[]> = new Map<
Expand Down
2 changes: 1 addition & 1 deletion packages/template-resolver/src/SnippetTemplateResolver.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/template-resolver/src/UnionResolver.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down

0 comments on commit b5a69c7

Please sign in to comment.