diff --git a/.gitattributes b/.gitattributes index a701abb..36d682d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -src/generated/* linguist-vendored \ No newline at end of file +generated/* linguist-vendored \ No newline at end of file diff --git a/codegen.yml b/codegen.yml index 890ec40..a3f5ded 100644 --- a/codegen.yml +++ b/codegen.yml @@ -2,7 +2,7 @@ overwrite: true schema: "http://localhost:8000/___graphql" documents: "src/**/*.graphql" generates: - src/generated/graphql.ts: + generated/graphql.ts: plugins: - "typescript" - "typescript-operations" diff --git a/src/generated/graphql.ts b/generated/graphql.ts similarity index 100% rename from src/generated/graphql.ts rename to generated/graphql.ts diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 902626b..52e22a1 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -1,7 +1,7 @@ import React, { Fragment } from "react" import { graphql } from "gatsby" import { Markdown } from "../components/Markdown" -import { MarkdownRemark, Query } from "../generated/graphql" +import { MarkdownRemark, Query } from "../../generated/graphql" import { SEO } from "../components/SEO" function AboutPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) { diff --git a/src/pages/rules.tsx b/src/pages/rules.tsx index d0ddfe2..d5c7e29 100644 --- a/src/pages/rules.tsx +++ b/src/pages/rules.tsx @@ -1,7 +1,7 @@ import React, { Fragment } from "react" import { graphql } from "gatsby" import { Markdown } from "../components/Markdown" -import { MarkdownRemark, Query } from "../generated/graphql" +import { MarkdownRemark, Query } from "../../generated/graphql" import { SEO } from "../components/SEO" function RulesPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {