01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a large bowl, cream together softened butter and sugar until light and fluffy.
03 - Beat in the egg and vanilla extract, mixing until fully incorporated.
04 - Fold in the well-drained pineapple.
05 - In a separate bowl, whisk together flour, baking soda, baking powder, and salt.
06 - Gradually add dry ingredients to the wet ingredients, mixing until combined.
07 - Drop heaping tablespoons of dough onto prepared baking sheets, spacing 2 inches apart.
08 - Bake for 12-15 minutes, until edges are lightly golden.
09 - Let cookies cool on the baking sheets for 5 minutes, then transfer to a wire rack.
10 - For the glaze (optional): Mix powdered sugar with pineapple juice until smooth. Drizzle over cooled cookies.