You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-04 18:22:34 +03:00
21 lines
473 B
TypeScript
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;
|