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.
Consider the following example:
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.