Depends a little on whether you want a compact or standard.
I haven’t done this myself, but I’ve read on the internet that you can just dial in the limit screws on the front mech and still use the triple shifter. Just make sure to put the new smallest ring on the same click as the old smallest ring of your triple, that way you get the most adjustments on your shifter.
Road triples have a 130 bcd on the middle ring, so you’re stuck with 39 tooth smallest gear. Better to just buy a new crankset, especially since shimano ones can do both compact or standard on the same cranks.
Have to agree that triples are useless (unless you’re touring with a heavy loaded bike). Smallest gear is far too spinny, and 39 – 50 has way too much overlap.