mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-05 20:15:46 +00:00
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
import { CodegenConfig } from "@graphql-codegen/cli";
|
|
|
|
const config: CodegenConfig = {
|
|
schema: "./schema.graphql",
|
|
documents: ["src/**/*.tsx", "!src/gql/**/*"],
|
|
ignoreNoDocuments: true, // for better experience with the watcher
|
|
generates: {
|
|
"./src/gql/": {
|
|
preset: "client",
|
|
plugins: [],
|
|
},
|
|
"./src/gql/schema.ts": {
|
|
plugins: ["urql-introspection"],
|
|
},
|
|
},
|
|
hooks: { afterAllFileWrite: ["eslint --fix"] },
|
|
};
|
|
|
|
export default config;
|