If you are scared someone stole your business because they saw your source code a few years ago, then I argue you don't know what is the value you deliver. Code is one of the least important bits :)
Of course there are exceptions. You can get rich by having a patent for some fancy crypto algorithm. Not my cup of tea though. Feels morally similar to profiting from a patent for a vaccine.