Peptide ligation via the in-situ transformation of an amide into a thioester at a cysteine residue.