The easiest method is to top your pesto with a thin layer of oil before refrigerating. Or, you could blanch your basil leaves before using them.