Not from eating the pineapple. For one thing, pineapple is wet and extremely acid. I have seen nothing that says a stray bit of corona virus would land on an acidic, wet surface and stay viable. For another, SARS-CoV-2 (the virus that causes Covid-19) is not a stomach virus. You don't get the illness from eating the virus, but from breathing it in.
If you had, for example, wiped some virus molecules off the sack and then rubbed them into your eye or stuck them up your nose, there is a slight possibility, though from packaging is not the way most people get Covid-19. But it sounds like you did nothing like that anyway. You've got to get the virus into your respiratory system in order to get Covid-19.