Skip to content

Commit

Permalink
Check dev-dependencies for sails-hook-grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Feb 5, 2018
1 parent e8493a6 commit e8f9bee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/app/private/checkGruntConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ module.exports = function(sails) {
}

// If this app has sails-hook-grunt installed, then we're all good.
if (appPackageJSON.dependencies && appPackageJSON.dependencies['sails-hook-grunt']) {
if (
(appPackageJSON.dependencies && appPackageJSON.dependencies['sails-hook-grunt']) ||
(appPackageJSON.devDependencies && appPackageJSON.devDependencies['sails-hook-grunt'])
) {
return cb();
}

Expand Down

0 comments on commit e8f9bee

Please sign in to comment.