Skip to content

Commit b76f51a

Browse files
committedJun 18, 2021
fix: include all dep types when building for prepare
Fixes: npm/cli#2920
1 parent 745265a commit b76f51a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
 

‎lib/fetcher.js

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ class FetcherBase {
119119
'--no-progress',
120120
'--no-save',
121121
'--no-audit',
122+
// override any omit settings from the environment
123+
'--include=dev',
124+
'--include=peer',
125+
'--include=optional',
122126
]
123127
}
124128

‎tap-snapshots/test/fetcher.js-fake-sudo.test.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Array [
4343
"--no-progress",
4444
"--no-save",
4545
"--no-audit",
46+
"--include=dev",
47+
"--include=peer",
48+
"--include=optional",
4649
]
4750
`
4851

@@ -56,6 +59,9 @@ Array [
5659
"--no-progress",
5760
"--no-save",
5861
"--no-audit",
62+
"--include=dev",
63+
"--include=peer",
64+
"--include=optional",
5965
]
6066
`
6167

‎tap-snapshots/test/fetcher.js.test.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Array [
4343
"--no-progress",
4444
"--no-save",
4545
"--no-audit",
46+
"--include=dev",
47+
"--include=peer",
48+
"--include=optional",
4649
]
4750
`
4851

@@ -56,6 +59,9 @@ Array [
5659
"--no-progress",
5760
"--no-save",
5861
"--no-audit",
62+
"--include=dev",
63+
"--include=peer",
64+
"--include=optional",
5965
]
6066
`
6167

0 commit comments

Comments
 (0)
Please sign in to comment.