Have never done it before, but I'll be THAT guy this time. You should have taken the first available field.
I "lost" an alternator on a night flight a few years ago in the Tiger. Had always "heard" you'd have at least 30 minutes of power after losing it. I was 12 miles from my home field. From the time the alternator was lost, to smoke in the cockpit and TOTAL electrical failure was less than 10 seconds. Sometime at the end of that short span, my battery exploded. I didn't have to make a decision about "pressing on" ... my field was the closest. I had options to set down on I-10 or a 4 lane near my field if necessary. I got a LOT done in that 10 second span (shutdown non-eseential and prep fire extinguisher). Also. the Iphone light worked better than all of the flashlights I had on board in penetrating smoke. I vented after insuring no in-cockpit fire.
On inspection: the alternator separated into two and rotated 30* ... the smoke was from the belt turning over a non moving pulley, mechanic never gave a reason for the battery letting go, but it was a mess.
In short, you were lucky it was a simple single point failure and didn't escalate.