Problem
Remove-OldPSNowManifest deletes the existing PlasterManifest.xml before checking whether the replacement source file ("$BaseManifest.xml") exists. If the source is missing, Copy-Item throws a generic error after the original manifest is already gone, leaving the template root in a broken state.
Files
Private/Remove-OldPSNowManifest.ps1 (lines 14–27)
Acceptance Criteria
Problem
Remove-OldPSNowManifestdeletes the existingPlasterManifest.xmlbefore checking whether the replacement source file ("$BaseManifest.xml") exists. If the source is missing,Copy-Itemthrows a generic error after the original manifest is already gone, leaving the template root in a broken state.Files
Private/Remove-OldPSNowManifest.ps1(lines 14–27)Acceptance Criteria
ErrorRecordif"$BaseManifest.xml"does not exist inPlasterTemplate/Remove-Itemcalls — existing manifest is never deleted if replacement is missing