From 9908ab4abcb5fb83d0357583cc09e1f93765f9af Mon Sep 17 00:00:00 2001 From: David D Date: Thu, 14 Sep 2023 08:53:25 -0600 Subject: [PATCH] Handle non-src dirs for TypeScript documents (#10792) Co-authored-by: Lenz Weber-Tronic --- docs/source/development-testing/static-typing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/development-testing/static-typing.md b/docs/source/development-testing/static-typing.md index 76cc9a4e37a..6cc73457027 100644 --- a/docs/source/development-testing/static-typing.md +++ b/docs/source/development-testing/static-typing.md @@ -26,7 +26,8 @@ import { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: '', - documents: ['src/**/*.tsx'], + // this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure + documents: ['src/**/*.{ts,tsx}'], generates: { './src/__generated__/': { preset: 'client',