diff --git a/packages/gatsby-transformer-sqip/src/extend-node-type.js b/packages/gatsby-transformer-sqip/src/extend-node-type.js index 3c55cb3804707..de92da938717c 100644 --- a/packages/gatsby-transformer-sqip/src/extend-node-type.js +++ b/packages/gatsby-transformer-sqip/src/extend-node-type.js @@ -44,7 +44,9 @@ module.exports = async args => { async function sqipSharp({ type, cache, getNodeAndSavePathDependency, store }) { const program = store.getState().program - const cacheDir = resolve(`${program.directory}/.cache/sqip/`) + const cacheDir = resolve( + `${program.directory}/node_modules/.cache/gatsby-transformer-sqip/` + ) await ensureDir(cacheDir)