If it is running fine with the jumpers on and then dies or starts to die when you remove the cables the problem is most likely the alternator but I would check the fuses to see if any are blown before replacing the alternator and the battery could have been damaged also.
P&ontiac Technician
26 years experience