Skip to content

Output scheme to theme instead of starter #167

Description

@kalebheitzman

Consider the following example:

{
  resolve: `gatsby-plugin-typegen`,
  options: {
    outputPath: `${__dirname}/src/__generated__/gatsby-types.d.ts`,
    emitSchema: {
      'src/__generated__/gatsby-introspection.json': true,
    },
    emitPluginDocuments: {
      'src/__generated__/gatsby-plugin-documents.graphql': true,
    },
  }
}

Shipping types with a theme by changing the output directory and this correctly puts the types in the theme that I'm developing. Is there an option to make the schema and plugin documents output inside of the theme instead of the main/starter project. I'm loading this plugin from the theme as well.

I'm using yarn workspaces to develop the theme as suggested in the Gatsby docs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions