mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
chore(xtask): Preaerve version
This commit is contained in:
parent
e228724b05
commit
e0c07e25a1
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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))?;
|
||||
|
Loading…
Reference in New Issue
Block a user