Skip to content

Commit

Permalink
fix forgotten typegen exclusoin (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Jun 9, 2023
1 parent 43616e9 commit 7570849
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-berries-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@0no-co/graphqlsp': patch
---

Fix forgotten typegen
12 changes: 6 additions & 6 deletions packages/example/__generated__/baseGraphQLSP.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/graphqlsp/src/graphql/getSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export const loadSchema = (
ref.current = isJson
? buildClientSchema(JSON.parse(contents))
: buildSchema(contents);
generateBaseTypes(ref.current, baseTypesPath, scalars, extraTypes);
if (shouldTypegen)
generateBaseTypes(ref.current, baseTypesPath, scalars, extraTypes);
logger(`Got schema and initialized watcher for ${schema}`);
}

Expand Down

0 comments on commit 7570849

Please sign in to comment.