chore(xtask): Preaerve version

This commit is contained in:
강동윤 (Donny) 2023-10-12 08:04:43 +09:00
parent e228724b05
commit e0c07e25a1
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{
"name": "@swc/core",
"version": "1.3.95-nightly.20231011.1",
"version": "1.3.93-nightly.20231011.1",
"description": "Super-fast alternative for babel",
"homepage": "https://swc.rs",
"main": "./index.js",

View File

@ -1,6 +1,7 @@
{
"name": "@swc/minifier",
"version": "1.3.95-nightly.20231011.1",
"version": "1.3.92",
"description": "Super-fast alternative for terser",
"homepage": "https://swc.rs",
"main": "./index.js",

View File

@ -77,7 +77,10 @@ impl NightlyCmd {
fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result<Version> {
let mut ver = prev_version.clone();
ver.patch += 1;
if prev_version.pre.is_empty() {
ver.patch += 1;
}
for i in 1.. {
ver.pre = Prerelease::new(&format!("nightly.{}.{}", date, i))?;