Changing Theme Name Manually

So if you have a theme, with a name like theme1 but you decide you want to change the name to theme2 it seems that changing this name by editing settings_schema.json manually will cause the theme to become “corrupted”? I assume there is some magic happening under the hood of shopify theme rename and I should use that next time.

Can someone explain what this magic is?

I was about to launch my newly published theme2 on the live store, but saw that the theme preview wasn’t working and this error was being output

Theme cannot be previewed because it's missing one of these required files: layout/theme.liquid, config/settings_schema.json

Even though there is indeed a layout/theme.liquid file and a config/settings_schema.json file. If this wasn’t my first shopify theme launch I’m sure I’d know what to do, but it is..

Any explanation here would be super helpful for the newbies :slight_smile:

Cheers,
Nate