Fix version bump

This commit is contained in:
Paulus Schoutsen
2019-01-09 15:29:01 -08:00
parent 417ffde3e8
commit bda5c3a0c9
2 changed files with 6 additions and 5 deletions

View File

@ -10,9 +10,10 @@ function patch(version) {
function today() {
const now = new Date();
return `${now.getFullYear()}${now.getMonth() + 1}${String(
now.getDate()
).padStart(2, "0")}.0`;
return `${now.getFullYear()}${String(now.getMonth() + 1).padStart(
2,
"0"
)}${String(now.getDate()).padStart(2, "0")}.0`;
}
const methods = {
@ -51,4 +52,4 @@ async function main(args) {
console.log(stdout);
}
main(process.argv.slice(2));
main(process.argv.slice(2)).catch(console.error);