Skip to content

Commit

Permalink
feat(development): allow for "development" alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Mar 31, 2017
1 parent 1c6d1b3 commit 5710433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module.exports = function (cwd, group) {
assert.ifError(err)
}

// alias development
group = group === 'development' ? 'dev' : group

// set suffix
group = ~['prod', 'production'].indexOf(group) ? 'dependencies' : group + 'Dependencies'

Expand Down

0 comments on commit 5710433

Please sign in to comment.