1*8fd977adSWill Schurmanconst fs = require('fs/promises');
2*8fd977adSWill Schurman
3*8fd977adSWill Schurmanconst path = './src/graphql/generated.ts';
4*8fd977adSWill Schurman
5*8fd977adSWill Schurman(async () => {
6*8fd977adSWill Schurman  const generatedCode = await fs.readFile(path, 'utf8');
7*8fd977adSWill Schurman  const comment = `/**
8*8fd977adSWill Schurman * eslint-disable
9*8fd977adSWill Schurman * This file was generated using GraphQL Codegen
10*8fd977adSWill Schurman * Command: yarn generate-graphql-code
11*8fd977adSWill Schurman * Run this during development for automatic type generation when editing GraphQL documents
12*8fd977adSWill Schurman * For more info and docs, visit https://graphql-code-generator.com/
13*8fd977adSWill Schurman */\n\n`;
14*8fd977adSWill Schurman
15*8fd977adSWill Schurman  await fs.writeFile(path, comment + generatedCode);
16*8fd977adSWill Schurman})();
17