fix: auto-install-peers

This commit is contained in:
Zoltan Kochan
2022-04-12 01:05:19 +03:00
parent 905d19e904
commit 72b79f55a0
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/config": patch
"pnpm": patch
---
Setting the `auto-install-peers` to `true` should work.

View File

@@ -32,6 +32,7 @@ async function which (cmd: string) {
}
export const types = Object.assign({
'auto-install-peers': Boolean,
bail: Boolean,
'cache-dir': String,
'child-concurrency': Number,
@@ -164,6 +165,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,