Fix workspace manifest cleanup logic in remove command

Co-authored-by: btea <24516654+btea@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-29 08:54:52 +00:00
parent 79236ad25b
commit 436671bb0e

View File

@@ -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,
})] : []),
}),
])
}