Skip to content

Commit

Permalink
build: use type import for types only library
Browse files Browse the repository at this point in the history
This was causing build failure on the latest version of Vite
  • Loading branch information
tien committed Dec 8, 2023
1 parent 661c3db commit 776432e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-turkeys-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@talismn/chaindata-provider-extension": patch
---

build: use type import for types only library
1 change: 1 addition & 0 deletions packages/chaindata-provider-extension/src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const config: CodegenConfig = {
// defaults to `any` - let's go with `unknown` instead :)
JSON: "unknown",
},
useTypeImports: true,
},
hooks: { afterAllFileWrite: ["prettier --write"] },
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"

/* eslint-disable */
import * as types from "./graphql"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"
export type Maybe<T> = T | null
export type InputMaybe<T> = Maybe<T>
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
Expand Down

0 comments on commit 776432e

Please sign in to comment.