Especially for musicals (and theatre?) I think we should use “writer” rather than “composer” explicitly.
In fact, for a short time, it was common that soundtracks were credited to composer + lyricist (see the “Hair” musical’ edit-history)
So a +1 from me