diff --git a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js index 1bc8c761a8527..75308dab1e1f0 100644 --- a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js +++ b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js @@ -63,6 +63,17 @@ function replaceRule(value) { return value } +exports.onPreInit = ({ reporter }) => { + try { + require.resolve(`netlify-cms`) + reporter.warn( + `The netlify-cms package is deprecated, please install netlify-cms-app instead. You can do this by running "npm install netlify-cms-app"` + ) + } catch (err) { + // carry on + } +} + exports.onCreateDevServer = ({ app, store }, { publicPath = `admin` }) => { const { program } = store.getState() const publicPathClean = trim(publicPath, `/`)