Fix versioning script

This commit is contained in:
Wilson Lin 2019-12-30 18:44:11 +11:00
parent e49a1b008d
commit 137ac855eb
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ for (const f of ["Cargo.toml", "nodejs/native/Cargo.toml"]) {
}
for (const f of ["README.md"]) {
replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `version = "${NEW_VERSION}"`);
replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `hyperbuild = "${NEW_VERSION}"`);
}
for (const f of ["nodejs/package.json"]) {
replaceInFile(f, /^(\s*)"version": "\d+\.\d+\.\d+",\s*$/m, `$1"version": "${NEW_VERSION}"`);
replaceInFile(f, /^(\s*)"version": "\d+\.\d+\.\d+",\s*$/m, `$1"version": "${NEW_VERSION}",`);
}