diff --git a/libs/remix-ui/git/src/types/codegen.ts b/libs/remix-ui/git/src/types/codegen.ts new file mode 100644 index 0000000000..f815d67ad5 --- /dev/null +++ b/libs/remix-ui/git/src/types/codegen.ts @@ -0,0 +1,20 @@ +import { CodegenConfig } from '@graphql-codegen/cli'; + +const config: CodegenConfig = { + schema: 'https://docs.github.com/public/schema.docs.graphql', + // this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure + documents: ['src/**/*.{ts,tsx}'], + generates: { + './libs/remix-ui/git/src/types/': { + preset: 'client', + plugins: [], + presetConfig: { + gqlTagName: 'gql', + } + } + }, + overwrite: true, + ignoreNoDocuments: true, +}; + +export default config; \ No newline at end of file