Skip to content

Commit a1168d7

Browse files
fix: add npm ci --dev deprecation message
Related to npm#1539
1 parent 0a5f393 commit a1168d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ci.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function ci (args, cb) {
3232
dirPacker: pack.packGitDep
3333
}
3434

35+
if (npm.config.get('dev')) {
36+
log.warn('ci', 'Usage of the `--dev` option is deprecated. Use `--also=dev` instead.')
37+
}
38+
3539
for (const key in npm.config.list[0]) {
3640
if (!['log', 'cache'].includes(key)) {
3741
opts[key] = npm.config.list[0][key]

0 commit comments

Comments
 (0)