-
Notifications
You must be signed in to change notification settings - Fork 42
/
codegen.yml
31 lines (31 loc) · 724 Bytes
/
codegen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
hooks:
afterOneFileWrite:
- prettier --write
config:
strict: true
maybeValue: T | null
declarationKind: interface
avoidOptionals: true
preResolveTypes: true
onlyOperationTypes: true
namingConvention:
enumValues: keep
scalars:
DateTime: string
Date: string
Decimal: number
UUID: string
ID: string
JSON: any
overwrite: true
schema: ./packages/schema/src/server-schema.gql
documents: packages/schema/src/graphql/**/*.gql
generates:
packages/schema/src/schema.ts:
plugins:
- typescript
- typescript-operations
- add:
content: '/* eslint-disable */'
- ./tools/export-gql-plugin.js:
output: ./packages/schema/src/graphql/index.ts