Skip to content

Commit

Permalink
chore: normalize schema file path
Browse files Browse the repository at this point in the history
  • Loading branch information
yurks committed Jun 7, 2024
1 parent 5f8f08d commit 39f1361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/configPaths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { normalizePath } from 'vite';
import { resolve } from 'node:path';
import type { CodegenContext } from '@graphql-codegen/cli';

export async function getDocumentPaths(
Expand Down Expand Up @@ -52,5 +53,6 @@ export async function getSchemaPaths(
return schemas
.filter((schema): schema is string => typeof schema === 'string')
.filter(Boolean)
.map((schema) => resolve(schema))
.map(normalizePath);
}

0 comments on commit 39f1361

Please sign in to comment.