chore: Ensure packages have version in theme.json

This commit is contained in:
Mauro Balades 2024-08-25 09:01:07 +02:00
parent 3c5f0bcf15
commit fea6e8e7b8
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,6 @@
def ensure_packages_have_version(theme_data):
if 'version' not in theme_data:
print(" Version is required in theme.json. Adding default value of 1.0.0.")
theme_data['version'] = '1.0.0'
return theme_data