mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
committed by
Zoltan Kochan
parent
5a5e42551e
commit
d9564e3546
7
.changeset/real-knives-bathe.md
Normal file
7
.changeset/real-knives-bathe.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@pnpm/config": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Resolve the current working directory to its real location before doing any operations [#6524](https://github.com/pnpm/pnpm/issues/6524).
|
||||
|
||||
@@ -291,7 +291,9 @@ export async function getConfig (
|
||||
...rcOptions.map((configKey) => [camelcase(configKey), npmConfig.get(configKey)]) as any, // eslint-disable-line
|
||||
...Object.entries(cliOptions).filter(([name, value]) => typeof value !== 'undefined').map(([name, value]) => [camelcase(name), value]),
|
||||
]) as unknown as ConfigWithDeprecatedSettings
|
||||
const cwd = betterPathResolve(cliOptions.dir ?? npmConfig.localPrefix)
|
||||
// Resolving the current working directory to its actual location is crucial.
|
||||
// This prevents potential inconsistencies in the future, especially when processing or mapping subdirectories.
|
||||
const cwd = fs.realpathSync(betterPathResolve(cliOptions.dir ?? npmConfig.localPrefix))
|
||||
|
||||
pnpmConfig.maxSockets = npmConfig.maxsockets
|
||||
// @ts-expect-error
|
||||
|
||||
Reference in New Issue
Block a user