mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-10 00:48:46 -04:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user