Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.19k stars 374 forks source link

Run .liquid sections before .json templates in deploy command #993

Open andershagbard opened 1 year ago

andershagbard commented 1 year ago

Describe the bug If a JSON templates refereres to a section which does not exist in the code, it wont upload. However, when using theme deploy it uploads all files.

There are cases where JSON templates will currently be run before their referred sections, and therefore fail.

Error: (templates/customers/login.json) Section type 'template-customers-login' does not refer to an existing section file