This appears to have broken in a recent change. If you package an item type that has a download, i.e CSV, Survey123 Form, Pro Project Package, the file is added to the resources successfully but it is not referenced in the resources property of the template. This causes it to fail to deploy properly.
To repro:
Use the create solution demo app and create a solution from a CSV item, for example (6827cad15df44e0cb6d4d0e297fe1ac3)
View the resulting item, the csv.zip resources is successfully added to the item, but the file is not referenced in the resources array of the template in the item data.
This appears to have broken in a recent change. If you package an item type that has a download, i.e CSV, Survey123 Form, Pro Project Package, the file is added to the resources successfully but it is not referenced in the resources property of the template. This causes it to fail to deploy properly.
To repro:
View the resulting item, the csv.zip resources is successfully added to the item, but the file is not referenced in the resources array of the template in the item data.
As a result when deployed the csv is not added to the item and causes it to be broken.