gatsby-typescript icon indicating copy to clipboard operation
gatsby-typescript copied to clipboard

[gatsby-plugin-graphql-codegen] Ignore or exclude certain match?

Open raulfdm opened this issue 5 years ago • 1 comments

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.

raulfdm avatar Aug 19 '20 20:08 raulfdm

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.

vimtor avatar Oct 03 '20 20:10 vimtor