Skip to content

Commit

Permalink
change-version.js: strip leading "v" from arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 2, 2021
1 parent 1f11101 commit 7cf62f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/change-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ async function main(args) {
process.exit(1)
}

[oldVersion, newVersion].forEach(arg => {
if (arg.startsWith('v')) {
arg = arg.slice(1)
}
})

try {
const files = await globby(GLOB, GLOBBY_OPTIONS)

Expand Down

0 comments on commit 7cf62f7

Please sign in to comment.