Skip to content

Commit

Permalink
some codegen perf fixes (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jan 19, 2024
1 parent 84c3c74 commit aa0c824
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-goats-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fuse': patch
---

Codegen performance fixes
5 changes: 4 additions & 1 deletion packages/core/src/next/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ async function boostrapCodegen(port: number, path: string) {
baseDirectory + '/types/**/*.ts',
'!./{node_modules,.next,.git}/**/*',
],
documents: ['./**/!(node_modules|.next|.git)/*.{ts,tsx}'],
documents: [
hasSrcDir ? './src/**/*.{ts,tsx}' : './**/*.{ts,tsx}',
'!./{node_modules,.next,.git}/**/*',
],
schema: `http://localhost:${port}/api/${path}`,
debug: true,
generates: {
Expand Down

0 comments on commit aa0c824

Please sign in to comment.