Skip to content

Commit 0328fe0

Browse files
committedJun 18, 2021
fix: do not do dry-run/package-lock installs for preparation
Fixes npm/cli#3300
1 parent b76f51a commit 0328fe0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
 

‎lib/fetcher.js

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ class FetcherBase {
123123
'--include=dev',
124124
'--include=peer',
125125
'--include=optional',
126+
// we need the actual things, not just the lockfile
127+
'--no-package-lock-only',
128+
'--no-dry-run',
126129
]
127130
}
128131

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

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Array [
4646
"--include=dev",
4747
"--include=peer",
4848
"--include=optional",
49+
"--no-package-lock-only",
50+
"--no-dry-run",
4951
]
5052
`
5153

@@ -62,6 +64,8 @@ Array [
6264
"--include=dev",
6365
"--include=peer",
6466
"--include=optional",
67+
"--no-package-lock-only",
68+
"--no-dry-run",
6569
]
6670
`
6771

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

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Array [
4646
"--include=dev",
4747
"--include=peer",
4848
"--include=optional",
49+
"--no-package-lock-only",
50+
"--no-dry-run",
4951
]
5052
`
5153

@@ -62,6 +64,8 @@ Array [
6264
"--include=dev",
6365
"--include=peer",
6466
"--include=optional",
67+
"--no-package-lock-only",
68+
"--no-dry-run",
6569
]
6670
`
6771

0 commit comments

Comments
 (0)
Please sign in to comment.