Skip to content

Commit 9982f17

Browse files
committed
fix(codegen): document syntax
- ? is preventing the codegen from matching anything
1 parent c7d71dd commit 9982f17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

codegen.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { CodegenConfig } from '@graphql-codegen/cli';
33
const config: CodegenConfig = {
44
// schema: 'http://localhost:5000/graphql',
55
schema: 'https://dev-api.cofacts.tw/graphql',
6-
documents: ['pages/**/*.tsx?', 'components/**/*.tsx?', 'lib/**/*.tsx'],
6+
documents: [
7+
'pages/**/*.{ts,tsx}',
8+
'components/**/*.{ts,tsx}',
9+
'lib/**/*.{ts,tsx}',
10+
],
711
generates: {
812
'./typegen/': {
913
preset: 'client',

0 commit comments

Comments
 (0)