mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-06-21 10:25:40 +02:00
13 lines
393 B
Python
13 lines
393 B
Python
import json
|
|
import os
|
|
#load package.json and extract version infromation and write it to a file
|
|
with open('./package.json') as f:
|
|
data = json.load(f)
|
|
data ={
|
|
'version': data['version'],
|
|
'name':data['name']
|
|
}
|
|
with open('./dist/mikrowizard/version.json', 'w') as f:
|
|
json.dump(data, f)
|
|
print('Version information written to version.json')
|
|
|