Skip to content

Commit

Permalink
fix: add npm ci --dev deprecation message
Browse files Browse the repository at this point in the history
Related to npm#1539
  • Loading branch information
sandratatarevicova committed Jul 28, 2020
1 parent 0a5f393 commit a1168d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function ci (args, cb) {
dirPacker: pack.packGitDep
}

if (npm.config.get('dev')) {
log.warn('ci', 'Usage of the `--dev` option is deprecated. Use `--also=dev` instead.')
}

for (const key in npm.config.list[0]) {
if (!['log', 'cache'].includes(key)) {
opts[key] = npm.config.list[0][key]
Expand Down

0 comments on commit a1168d7

Please sign in to comment.