Skip to content

Commit

Permalink
Do not check for devDependencies in production env
Browse files Browse the repository at this point in the history
  • Loading branch information
kipliklotrika authored and simonovic86 committed Sep 24, 2018
1 parent 44da525 commit f2260b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class Utilities {
// eslint-disable-next-line no-template-curly-in-string
packageDir: '${__dirname}/../',
install: false,
scopeList: ['dependencies', 'devDependencies'],
scopeList: process.env.NODE_ENV !== 'production' ?
['dependencies', 'devDependencies'] : ['dependencies'],
verbose: false,
}).then((output) => {
if (!output.depsWereOk) {
Expand Down

0 comments on commit f2260b0

Please sign in to comment.