Why does my product.json file disappear after pushing changes on Shopify CLI?

Hello,

Our theme uses .liquid files inside /templates. I’ve been wanting to replace product.liquid with product.json and make use of sections/product-content.liquid so i can make better use of dynamic sections for this page type. I’ve followed the online tutorial provided by Shopify which isn’t all that hard.

Locally, it all works. Unfortunately, as soon as i try to push the local changes, for some reason, our Shopify live store doesn’t recognise the fact i now use product.json. It’s not being shown inside the Admin Code Editor and keeps using the initial product.liquid file (which was renamed to _product.liquid and thus “deleted” in the repo). Since no errors are given, not by Shopify CLI nor Github, it was very confusing for me to figure out what actually happened. product.liquid is “deleted” (renamed), yet in the online code editor, there it is: product.liquid, and no product.json!

I then went on to use the Admin Code Editor and create a dummy product.json file (which i can’t really do, since i’m obligated to append a filename to product[entermyownhandlehere].json. I need product.json, not product-xxx.json. Anyway, i created a dummy product-test.json and after reloading the Code Editor, this file is again gone.

Is there an issue i’m not aware of? I’m eagerly wanting to make use of sections within my theme.