Rocky planet formation in compact disks around M dwarfs