From d4683e0dc382fd9b9ed83e0fda70656e8b10b369 Mon Sep 17 00:00:00 2001 From: Michael Hellein Date: Tue, 8 Aug 2017 10:15:02 -0400 Subject: [PATCH] Added check for gatsby in devDependencies. (#1738) --- packages/gatsby-cli/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-cli/src/index.js b/packages/gatsby-cli/src/index.js index 87dd9c8c564c0..721fda4b30d9b 100755 --- a/packages/gatsby-cli/src/index.js +++ b/packages/gatsby-cli/src/index.js @@ -11,7 +11,7 @@ let inGatsbySite = false let localPackageJSON try { localPackageJSON = require(path.resolve(`./package.json`)) - if (localPackageJSON.dependencies && localPackageJSON.dependencies.gatsby) { + if (localPackageJSON.dependencies && localPackageJSON.dependencies.gatsby || localPackageJSON.devDependencies && localPackageJSON.devDependencies.gatsby) { inGatsbySite = true } else if ( localPackageJSON.devDependencies &&