From e8eb2179fa74bd75a7dd7a520e7536eb645da67a Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 3 Apr 2021 23:44:21 +0300 Subject: [PATCH] fix: don't print warnings about unknown settings ref #3159 ref #3160 --- packages/pnpm/src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/pnpm/src/main.ts b/packages/pnpm/src/main.ts index ee6c1e6172..8815a1e1fa 100644 --- a/packages/pnpm/src/main.ts +++ b/packages/pnpm/src/main.ts @@ -83,13 +83,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