Skip to content

Commit

Permalink
Added check for gatsby in devDependencies. (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaek authored and KyleAMathews committed Aug 8, 2017
1 parent 346065e commit d4683e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit d4683e0

Please sign in to comment.