01 - Preheat oven to 350°F. Line two baking sheets with parchment paper for easy cleanup and to prevent sticking.
02 - In a medium bowl, whisk together flour, cinnamon, ginger, nutmeg, baking soda, baking powder, and salt until evenly distributed.
03 - In a large bowl, beat softened butter, brown sugar, and granulated sugar together until light and fluffy, approximately 2-3 minutes.
04 - Beat in the egg and vanilla extract until fully incorporated into the butter mixture.
05 - Stir the grated carrots into the wet mixture until evenly distributed throughout the dough.
06 - Gradually add the dry ingredient mixture to the wet ingredients, mixing gently until just combined. Avoid overmixing to prevent tough cookies.
07 - Gently fold in rolled oats, nuts, and raisins if using, ensuring even distribution without overworking the dough.
08 - Drop tablespoon-sized mounds of dough onto prepared baking sheets, spacing approximately 2 inches apart to allow for spreading during baking.
09 - Bake for 11-13 minutes until edges are golden brown and centers appear set. Cookies will continue to firm as they cool.
10 - Allow cookies to rest on baking sheet for 5 minutes, then transfer to wire rack to cool completely before frosting.
11 - Beat cream cheese and softened butter together until smooth and creamy. Add powdered sugar, vanilla, and salt; continue beating until fluffy and well-combined.
12 - Once cookies have cooled completely, spread or pipe frosting onto the flat side of each cookie. Serve immediately or refrigerate.