fix(cli): wrong metadata

This commit is contained in:
Lucas Nogueira 2022-09-15 14:51:42 -03:00
parent 0967da262e
commit 2954f6d252
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
2 changed files with 9 additions and 4 deletions

View File

@ -36,8 +36,13 @@ switch (bump) {
const inc = (version) => {
const v = version.split('.')
const n = v[index]
v[index] = String(Number(n) + 1)
for (let i = 0; i < v.length; i++) {
if (i === index) {
v[i] = String(Number(v[i]) + 1)
} else if (i > index) {
v[i] = 0
}
}
return v.join('.')
}

View File

@ -1,8 +1,8 @@
{
"cli.js": {
"version": "1.1.5",
"version": "1.1.0",
"node": ">= 10.0.0"
},
"tauri": "1.1.5",
"tauri": "1.1.0",
"tauri-build": "1.1.4"
}