fix: don't print warnings about unknown settings (#3160)

close #3159
This commit is contained in:
Zoltan Kochan
2021-02-19 23:01:23 +02:00
committed by GitHub
parent e1494cafad
commit 451ddf1ce6
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"pnpm": patch
---
Turn off warnings about settings.

View File

@@ -88,13 +88,12 @@ export default async function run (inputArgv: string[]) {
// When we just want to print the location of the global bin directory,
// we don't need the write permission to it. Related issue: #2700
const globalDirShouldAllowWrite = cmd !== 'root'
const checkUnknownSetting = cmd === 'install'
config = await getConfig(cliOptions, {
excludeReporter: false,
globalDirShouldAllowWrite,
rcOptionsTypes,
workspaceDir,
checkUnknownSetting,
checkUnknownSetting: false,
}) as typeof config
config.forceSharedLockfile = typeof config.workspaceDir === 'string' && config.sharedWorkspaceLockfile === true
config.argv = argv