Skip to content

Commit

Permalink
Merge pull request #81 from npm/isaacs/include-all-dep-types-when-pre…
Browse files Browse the repository at this point in the history
…paring

fix: include all dep types when building for prepare
  • Loading branch information
lukekarrys committed Jul 2, 2021
2 parents 6ad9ede + 0328fe0 commit 7660b0b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/fetcher.js
Expand Up @@ -119,6 +119,13 @@ class FetcherBase {
'--no-progress',
'--no-save',
'--no-audit',
// override any omit settings from the environment
'--include=dev',
'--include=peer',
'--include=optional',
// we need the actual things, not just the lockfile
'--no-package-lock-only',
'--no-dry-run',
]
}

Expand Down
10 changes: 10 additions & 0 deletions tap-snapshots/test/fetcher.js-fake-sudo.test.cjs
Expand Up @@ -43,6 +43,11 @@ Array [
"--no-progress",
"--no-save",
"--no-audit",
"--include=dev",
"--include=peer",
"--include=optional",
"--no-package-lock-only",
"--no-dry-run",
]
`

Expand All @@ -56,6 +61,11 @@ Array [
"--no-progress",
"--no-save",
"--no-audit",
"--include=dev",
"--include=peer",
"--include=optional",
"--no-package-lock-only",
"--no-dry-run",
]
`

Expand Down
10 changes: 10 additions & 0 deletions tap-snapshots/test/fetcher.js.test.cjs
Expand Up @@ -43,6 +43,11 @@ Array [
"--no-progress",
"--no-save",
"--no-audit",
"--include=dev",
"--include=peer",
"--include=optional",
"--no-package-lock-only",
"--no-dry-run",
]
`

Expand All @@ -56,6 +61,11 @@ Array [
"--no-progress",
"--no-save",
"--no-audit",
"--include=dev",
"--include=peer",
"--include=optional",
"--no-package-lock-only",
"--no-dry-run",
]
`

Expand Down

0 comments on commit 7660b0b

Please sign in to comment.