Preheat the oven to 350 degrees F and line a baking sheet with parchment paper or a silicone mat. Set aside.
In a large bowl or the bowl of a stand mixer, cream the vegan butter and both sugars. Mix for 3 to 5 minutes or until light and fluffy. Add the applesauce and vanilla extract. Mix for 1 minute.
In a medium bowl, combine the flour, baking soda, baking powder, and pumpkin spice.
Add the dry ingredients to the bowl with the wet ingredients. Using a spatula gently mix just until the ingredients are combined.
Fold in the carrots, raisins, and walnuts (if using).
Using a 2-tablespoon cookie scoop, scoop the batter onto the prepared baking sheet and leave 2 inches between each cookie. Lightly flatten them using your hands and bake for 11 to 13 minutes.
Remove them from the oven and allow to cool on the baking sheet for 5 minutes. Transfer to a cooling rack and allow them to fully cool.
Notes
Speedy prep: A food processor shredding disk shreds carrots in seconds.
Use freshly shredded carrots: They taste better and provide more moisture. Pre-shredded carrots can also be a little too thick.
Adjust carrot texture: I like a little ‘bite,’ so I use medium-coarse carrot shreds. Finely shredded carrots will more evenly ‘melt’ into the dough for more even distribution.
Don’t overwork the dough: Mix until only just combined to avoid tough cookies.