1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-04 18:22:34 +03:00
Files
authentication-service/frontend/codegen.ts
Quentin Gliech dfdfc25d00 Bump frontend dependencies
Also properly exclude generated files from eslint
2023-06-14 09:24:49 +02:00

21 lines
473 B
TypeScript

import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "./schema.graphql",
documents: ["src/**/*.{tsx,ts}", "!src/gql/**/*"],
ignoreNoDocuments: true, // for better experience with the watcher
generates: {
"./src/gql/": {
preset: "client",
},
"./src/gql/schema.ts": {
plugins: ["urql-introspection"],
},
},
hooks: {
afterOneFileWrite: ["prettier --write"],
},
};
export default config;