gatsby-typescript
gatsby-typescript copied to clipboard
[gatsby-plugin-graphql-codegen] Ignore or exclude certain match?
Hello there.
I couldn't find in the docs some place where we can ignore some files, is that currently possible somehow?
I have .test.ts files inside src (nearby its definition) and everytime I'm writing some test but let gatsby watch on, it recompile my types.
I tried to pass in documentPaths a pattern like: './src/**/!(*.test).{ts,tsx}' but it still didn't ignore them. I'm not sure if it's a glob or a regex so it might be because of that.
Same issue here, it will be nice to exclude some patterns if not the plugin becomes unusable once you generate the types inside the src folder.