From 9982f1798942f54ce6f05dd47358fb6e956fb838 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Wed, 10 Jan 2024 23:42:59 +0800 Subject: [PATCH] fix(codegen): document syntax - ? is preventing the codegen from matching anything --- codegen.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codegen.ts b/codegen.ts index 780d956a..672e4285 100644 --- a/codegen.ts +++ b/codegen.ts @@ -3,7 +3,11 @@ import { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { // schema: 'http://localhost:5000/graphql', schema: 'https://dev-api.cofacts.tw/graphql', - documents: ['pages/**/*.tsx?', 'components/**/*.tsx?', 'lib/**/*.tsx'], + documents: [ + 'pages/**/*.{ts,tsx}', + 'components/**/*.{ts,tsx}', + 'lib/**/*.{ts,tsx}', + ], generates: { './typegen/': { preset: 'client',