Jane Dyer tells The Daily Hampshire Gazette the 14-year-old boy entered her Cummington home on July 26 and struck her in the back of the head with the shovel.
He continued to beat her while she lay on the floor. He left and was arrested about a half hour later.
She suffered blunt-force injuries and a wound to her head requiring five surgical staples. She says she has no idea why he attacked her.
Prosecutors say the boy was arraigned on charges including home invasion and assault to murder.
Dyer has illustrated children's books including the "Cookies" series by Amy Krouse Rosenthal, and "Time for Bed" by Mem Fox.