mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
Fix workspace manifest cleanup logic in remove command
Co-authored-by: btea <24516654+btea@users.noreply.github.com>
This commit is contained in:
@@ -219,10 +219,10 @@ export async function handler (
|
||||
)
|
||||
await Promise.all([
|
||||
writeProjectManifest(mutationResult.updatedProject.manifest),
|
||||
...(opts.workspaceDir ? [updateWorkspaceManifest(opts.workspaceDir, {
|
||||
updateWorkspaceManifest(opts.workspaceDir ?? opts.dir, {
|
||||
updatedCatalogs: mutationResult.updatedCatalogs,
|
||||
cleanupUnusedCatalogs: opts.cleanupUnusedCatalogs,
|
||||
allProjects: opts.allProjects,
|
||||
})] : []),
|
||||
}),
|
||||
])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user