chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import type { CodegenConfig } from "@graphql-codegen/cli";
|
||||
import path from "node:path";
|
||||
|
||||
const schema = path.resolve(
|
||||
__dirname,
|
||||
"../runtime/__snapshots__/schema/schema.graphql",
|
||||
);
|
||||
|
||||
const config: CodegenConfig = {
|
||||
schema,
|
||||
documents: ["src/graphql/definitions/**/*.{ts,tsx}"],
|
||||
generates: {
|
||||
"./src/graphql/@generated/": {
|
||||
preset: "client",
|
||||
config: {
|
||||
useTypeImports: true,
|
||||
withHooks: false,
|
||||
},
|
||||
plugins: [],
|
||||
},
|
||||
},
|
||||
hooks: {},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user