fix: Properly save component dependencies