Skip to content

Commit 7660b0b

Browse files
authoredJul 2, 2021
Merge pull request #81 from npm/isaacs/include-all-dep-types-when-preparing
fix: include all dep types when building for prepare
2 parents 6ad9ede + 0328fe0 commit 7660b0b

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
 

‎lib/fetcher.js

+7
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ 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',
126+
// we need the actual things, not just the lockfile
127+
'--no-package-lock-only',
128+
'--no-dry-run',
122129
]
123130
}
124131

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

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Array [
4343
"--no-progress",
4444
"--no-save",
4545
"--no-audit",
46+
"--include=dev",
47+
"--include=peer",
48+
"--include=optional",
49+
"--no-package-lock-only",
50+
"--no-dry-run",
4651
]
4752
`
4853

@@ -56,6 +61,11 @@ Array [
5661
"--no-progress",
5762
"--no-save",
5863
"--no-audit",
64+
"--include=dev",
65+
"--include=peer",
66+
"--include=optional",
67+
"--no-package-lock-only",
68+
"--no-dry-run",
5969
]
6070
`
6171

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

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Array [
4343
"--no-progress",
4444
"--no-save",
4545
"--no-audit",
46+
"--include=dev",
47+
"--include=peer",
48+
"--include=optional",
49+
"--no-package-lock-only",
50+
"--no-dry-run",
4651
]
4752
`
4853

@@ -56,6 +61,11 @@ Array [
5661
"--no-progress",
5762
"--no-save",
5863
"--no-audit",
64+
"--include=dev",
65+
"--include=peer",
66+
"--include=optional",
67+
"--no-package-lock-only",
68+
"--no-dry-run",
5969
]
6070
`
6171

0 commit comments

Comments
 (0)
Please sign in to comment.