0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

build/change-version.js: fix wrong map usage (#35395)

This commit is contained in:
XhmikosR 2021-11-24 10:49:35 +02:00
parent d99c820f9c
commit 7245437856

View File

@ -57,7 +57,7 @@ async function replaceRecursively(file, oldVersion, newVersion) {
} }
async function main(args) { async function main(args) {
const [oldVersion, newVersion] = args let [oldVersion, newVersion] = args
if (!oldVersion || !newVersion) { if (!oldVersion || !newVersion) {
console.error('USAGE: change-version old_version new_version [--verbose] [--dry[-run]]') console.error('USAGE: change-version old_version new_version [--verbose] [--dry[-run]]')
@ -66,7 +66,7 @@ async function main(args) {
} }
// Strip any leading `v` from arguments because otherwise we will end up with duplicate `v`s // Strip any leading `v` from arguments because otherwise we will end up with duplicate `v`s
[oldVersion, newVersion].map(arg => arg.startsWith('v') ? arg.slice(1) : arg) [oldVersion, newVersion] = [oldVersion, newVersion].map(arg => arg.startsWith('v') ? arg.slice(1) : arg)
try { try {
const files = await globby(GLOB, GLOBBY_OPTIONS) const files = await globby(GLOB, GLOBBY_OPTIONS)