mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 07:38:12 -05:00
fix: pnpm-workspace.yaml config sharedWorkspaceLockfile does not work (#9372)
close #9366
This commit is contained in:
5
.changeset/little-lights-lie.md
Normal file
5
.changeset/little-lights-lie.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/config": patch
|
||||
---
|
||||
|
||||
`sharedWorkspaceLockfile` should be set in `pnpm-workspace.yaml` to take effect.
|
||||
@@ -342,9 +342,6 @@ export async function getConfig (opts: {
|
||||
'A package cannot be a peer dependency and an optional dependency at the same time')
|
||||
}
|
||||
}
|
||||
if (pnpmConfig.sharedWorkspaceLockfile && !pnpmConfig.lockfileDir && pnpmConfig.workspaceDir) {
|
||||
pnpmConfig.lockfileDir = pnpmConfig.workspaceDir
|
||||
}
|
||||
|
||||
pnpmConfig.packageManager = packageManager
|
||||
|
||||
@@ -502,6 +499,10 @@ export async function getConfig (opts: {
|
||||
}
|
||||
}
|
||||
|
||||
if (pnpmConfig.sharedWorkspaceLockfile && !pnpmConfig.lockfileDir && pnpmConfig.workspaceDir) {
|
||||
pnpmConfig.lockfileDir = pnpmConfig.workspaceDir
|
||||
}
|
||||
|
||||
pnpmConfig.workspaceConcurrency = getWorkspaceConcurrency(pnpmConfig.workspaceConcurrency)
|
||||
|
||||
pnpmConfig.failedToLoadBuiltInConfig = failedToLoadBuiltInConfig
|
||||
|
||||
Reference in New Issue
Block a user