Skip to content

Commit

Permalink
fix: auto-install-peers
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Apr 11, 2022
1 parent 956c71e commit 8270077
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/poor-maps-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pnpm/config": patch
"pnpm": patch
---

Setting the `auto-install-peers` to `true` should work.
2 changes: 2 additions & 0 deletions packages/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async function which (cmd: string) {
}

export const types = Object.assign({
'auto-install-peers': Boolean,
bail: Boolean,
'cache-dir': String,
'child-concurrency': Number,
Expand Down Expand Up @@ -174,6 +175,7 @@ export default async (
}
const rcOptionsTypes = { ...types, ...opts.rcOptionsTypes }
const npmConfig = loadNpmConf(cliOptions, rcOptionsTypes, {
'auto-install-peers': false,
bail: true,
color: 'auto',
'enable-modules-dir': true,
Expand Down

0 comments on commit 8270077

Please sign in to comment.