Skip to content

Commit

Permalink
Also check if Gatsby is installed as a devDependency (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Aug 5, 2017
1 parent b8183f6 commit b6d1ae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/gatsby-cli/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ try {
localPackageJSON = require(path.resolve(`./package.json`))
if (localPackageJSON.dependencies && localPackageJSON.dependencies.gatsby) {
inGatsbySite = true
} else if (
localPackageJSON.devDependencies &&
localPackageJSON.devDependencies.gatsby
) {
inGatsbySite = true
}
} catch (e) {
// ignore
Expand Down

0 comments on commit b6d1ae2

Please sign in to comment.