diff --git a/.changeset/nervous-fishes-repair.md b/.changeset/nervous-fishes-repair.md new file mode 100644 index 0000000000..02e5fc8bb5 --- /dev/null +++ b/.changeset/nervous-fishes-repair.md @@ -0,0 +1,5 @@ +--- +"pnpm": patch +--- + +Turn off warnings about settings. diff --git a/packages/pnpm/src/main.ts b/packages/pnpm/src/main.ts index b18db610cb..60fd0a0518 100644 --- a/packages/pnpm/src/main.ts +++ b/packages/pnpm/src/main.ts @@ -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