Skip to content

Commit

Permalink
fix(gatsby): Also clear cache on gatsby version change (#36913) (#36925)
Browse files Browse the repository at this point in the history
Co-authored-by: Ward Peeters <ward@coding-tech.com>
  • Loading branch information
gatsbybot and wardpeet authored Oct 31, 2022
1 parent 012761e commit be43418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby/src/services/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ export async function initialize({
// The last, gatsby-node.js, is important as many gatsby sites put important
// logic in there e.g. generating slugs for custom pages.
const pluginVersions = flattenedPlugins.map(p => p.version)
// we should include gatsby version as well
pluginVersions.push(require(`../../package.json`).version)
const optionalFiles = [
`${program.directory}/gatsby-config.js`,
`${program.directory}/gatsby-node.js`,
Expand Down

0 comments on commit be43418

Please sign in to comment.