Skip to content

Commit 39f1361

Browse files
committed
chore: normalize schema file path
1 parent 5f8f08d commit 39f1361

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/configPaths.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { normalizePath } from 'vite';
2+
import { resolve } from 'node:path';
23
import type { CodegenContext } from '@graphql-codegen/cli';
34

45
export async function getDocumentPaths(
@@ -52,5 +53,6 @@ export async function getSchemaPaths(
5253
return schemas
5354
.filter((schema): schema is string => typeof schema === 'string')
5455
.filter(Boolean)
56+
.map((schema) => resolve(schema))
5557
.map(normalizePath);
5658
}

0 commit comments

Comments
 (0)