From ce5554caab9e71da199655c22edd0291d5a9bf04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 06:59:20 +0900 Subject: [PATCH 01/28] Merge CI --- .github/workflows/publish-core.yml | 84 ++++++++++++++++++++++++ .github/workflows/publish-wasm.yml | 100 ----------------------------- 2 files changed, 84 insertions(+), 100 deletions(-) delete mode 100644 .github/workflows/publish-wasm.yml diff --git a/.github/workflows/publish-core.yml b/.github/workflows/publish-core.yml index 1a61ee89ff62..29dd41e9e830 100644 --- a/.github/workflows/publish-core.yml +++ b/.github/workflows/publish-core.yml @@ -470,3 +470,87 @@ jobs: RELEASE_VERSION: ${{ env.RELEASE_VERSION }} run: | ./scripts/cli_upload_gh_release.sh + + publish-node-wasm: + if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }} + + name: Build - wasm for node.js + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/ + **/target/ + key: ${{ runner.os }}-publish-integration + + - name: Install node dependencies + run: yarn + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + + - name: Build + working-directory: bindings/binding_core_wasm + run: | + wasm-pack build --out-name wasm --release --scope=swc --target nodejs + sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm"/g' pkg/package.json + + - name: Publish + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + run: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + (cd bindings/binding_core_wasm/pkg && npm publish --access public) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + publish-web-wasm: + if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }} + + name: Build - wasm for web + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/ + **/target/ + key: ${{ runner.os }}-publish-integration + + - name: Install node dependencies + run: yarn + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + + - name: Build + working-directory: bindings/binding_core_wasm + run: | + wasm-pack build --out-name wasm-web --release --scope=swc --target web + sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm-web"/g' pkg/package.json + + - name: Publish + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + run: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + (cd bindings/binding_core_wasm/pkg && npm publish --access public) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml deleted file mode 100644 index b32223402e2b..000000000000 --- a/.github/workflows/publish-wasm.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: Publish (wasm) - -env: - CARGO_INCREMENTAL: 0 - CARGO_PROFILE_RELEASE_LTO: "fat" - CI: "1" - -on: - push: - branches: - - ci - - ci* - - main - tags: - - v* - -jobs: - publish-node: - if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }} - - name: Build - wasm for node.js - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Cache - uses: actions/cache@v3 - with: - path: | - ~/.cargo/ - **/target/ - key: ${{ runner.os }}-publish-integration - - - name: Install node dependencies - run: yarn - - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - - name: Build - working-directory: bindings/binding_core_wasm - run: | - wasm-pack build --out-name wasm --release --scope=swc --target nodejs - sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm"/g' pkg/package.json - - - name: Publish - if: ${{ startsWith(github.ref, 'refs/tags/v') }} - run: | - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - (cd bindings/binding_core_wasm/pkg && npm publish --access public) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - publish-web: - if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }} - - name: Build - wasm for web - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Cache - uses: actions/cache@v3 - with: - path: | - ~/.cargo/ - **/target/ - key: ${{ runner.os }}-publish-integration - - - name: Install node dependencies - run: yarn - - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - - name: Build - working-directory: bindings/binding_core_wasm - run: | - wasm-pack build --out-name wasm-web --release --scope=swc --target web - sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm-web"/g' pkg/package.json - - - name: Publish - if: ${{ startsWith(github.ref, 'refs/tags/v') }} - run: | - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - (cd bindings/binding_core_wasm/pkg && npm publish --access public) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From d65ffa198906b8195ea73c541bb8c6b867f6b351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:05:14 +0900 Subject: [PATCH 02/28] xtask npm --- xtask/src/main.rs | 4 ++++ xtask/src/npm/mod.rs | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 xtask/src/npm/mod.rs diff --git a/xtask/src/main.rs b/xtask/src/main.rs index ccbab9b945df..bd71f90b1e7d 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -1,5 +1,6 @@ use anyhow::Result; use clap::{Parser, Subcommand}; +use npm::NpmCmd; use crate::{bench::BenchCmd, clean::CleanCmd, es::EsCmd, git::GitCmd}; @@ -7,6 +8,7 @@ mod bench; mod clean; mod es; mod git; +mod npm; mod util; #[derive(Debug, Parser)] @@ -20,6 +22,7 @@ enum Cmd { Es(EsCmd), Bench(BenchCmd), Git(GitCmd), + Npm(NpmCmd), Clean(CleanCmd), } @@ -30,6 +33,7 @@ fn main() -> Result<()> { Cmd::Es(c) => c.run(), Cmd::Bench(c) => c.run(), Cmd::Git(c) => c.run(), + Cmd::Npm(c) => c.run(), Cmd::Clean(c) => c.run(), } } diff --git a/xtask/src/npm/mod.rs b/xtask/src/npm/mod.rs new file mode 100644 index 000000000000..7c30fd253884 --- /dev/null +++ b/xtask/src/npm/mod.rs @@ -0,0 +1,17 @@ +use anyhow::Result; +use clap::{Args, Subcommand}; + +#[derive(Debug, Args)] +pub(super) struct NpmCmd { + #[clap(subcommand)] + cmd: Inner, +} + +#[derive(Debug, Subcommand)] +enum Inner {} + +impl NpmCmd { + pub fn run(self) -> Result<()> { + match self.cmd {} + } +} From 9514fb79094199ac8f3dc555af34c7b9d6d0a68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:06:49 +0900 Subject: [PATCH 03/28] Add dep --- xtask/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 3669f26b7785..63efcf02f7d8 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -13,6 +13,7 @@ version = "0.1.0" [dependencies] anyhow = "1.0.75" clap = { version = "4.4.6", features = ["derive"] } +semver = "1.0.20" serde = "1.0.188" serde_derive = "1.0.188" toml = "0.8.2" From fb2e4a2fb925c8376608157d3035bf4b115afde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:06:55 +0900 Subject: [PATCH 04/28] cargo lockfile --- Cargo.lock | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 564543df0dce..91b87ead8873 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -434,7 +434,7 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.17", + "semver 1.0.20", "serde", "serde_json", "thiserror", @@ -2715,7 +2715,7 @@ dependencies = [ "dashmap", "from_variant", "once_cell", - "semver 1.0.17", + "semver 1.0.20", "serde", "st-map", "tracing", @@ -3103,7 +3103,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.17", + "semver 1.0.20", ] [[package]] @@ -3215,9 +3215,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.17" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" +checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" dependencies = [ "serde", ] @@ -4310,7 +4310,7 @@ dependencies = [ "preset_env_base", "pretty_assertions", "rustc-hash", - "semver 1.0.17", + "semver 1.0.20", "serde", "serde_json", "st-map", @@ -6200,7 +6200,7 @@ dependencies = [ "petgraph", "pin-project", "rand", - "semver 1.0.17", + "semver 1.0.20", "serde", "serde_cbor", "serde_derive", @@ -6612,6 +6612,7 @@ version = "0.1.0" dependencies = [ "anyhow", "clap 4.4.6", + "semver 1.0.20", "serde", "serde_derive", "toml 0.8.2", From 6aaf462573c18f65cb8d478be02de4218bfbfeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:08:16 +0900 Subject: [PATCH 05/28] Dep --- xtask/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 63efcf02f7d8..e00073d1b4c1 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -16,5 +16,6 @@ clap = { version = "4.4.6", features = ["derive"] } semver = "1.0.20" serde = "1.0.188" serde_derive = "1.0.188" +serde_json = "1.0.107" toml = "0.8.2" walkdir = "2.4.0" From 930d523800371507fb1e8fbf97b7bdc86744e9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:08:20 +0900 Subject: [PATCH 06/28] cargo lockfile --- Cargo.lock | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 91b87ead8873..6aea9df1f0e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3271,9 +3271,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.97" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf3bf93142acad5821c99197022e170842cdbc1c30482b98750c688c640842a" +checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" dependencies = [ "itoa", "ryu", @@ -6615,6 +6615,7 @@ dependencies = [ "semver 1.0.20", "serde", "serde_derive", + "serde_json", "toml 0.8.2", "walkdir", ] From ac1f268b916f69164ddf1929f9243b1b7b623e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:09:50 +0900 Subject: [PATCH 07/28] npm nightly --- xtask/src/npm/mod.rs | 12 ++++++++++-- xtask/src/npm/nightly.rs | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 xtask/src/npm/nightly.rs diff --git a/xtask/src/npm/mod.rs b/xtask/src/npm/mod.rs index 7c30fd253884..a69d571774f0 100644 --- a/xtask/src/npm/mod.rs +++ b/xtask/src/npm/mod.rs @@ -1,6 +1,10 @@ use anyhow::Result; use clap::{Args, Subcommand}; +use self::nightly::NightlyCmd; + +mod nightly; + #[derive(Debug, Args)] pub(super) struct NpmCmd { #[clap(subcommand)] @@ -8,10 +12,14 @@ pub(super) struct NpmCmd { } #[derive(Debug, Subcommand)] -enum Inner {} +enum Inner { + Nightly(NightlyCmd), +} impl NpmCmd { pub fn run(self) -> Result<()> { - match self.cmd {} + match self.cmd { + Inner::Nightly(c) => c.run(), + } } } diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs new file mode 100644 index 000000000000..0f5dae9a4ec9 --- /dev/null +++ b/xtask/src/npm/nightly.rs @@ -0,0 +1,24 @@ +use anyhow::{Context, Result}; +use clap::Args; + +use crate::util::{repository_root, wrap}; + +#[derive(Debug, Args)] +pub(super) struct NightlyCmd {} + +impl NightlyCmd { + pub fn run(self) -> Result<()> { + wrap(|| { + let root_pkg_json = repository_root()?.join("package.json"); + let content = serde_json::from_reader::<_, serde_json::Value>( + std::fs::File::open(root_pkg_json).context("failed to open package.json")?, + )?; + let version = semver::Version::parse(content["version"].as_str().unwrap())?; + + dbg!(&version); + + Ok(()) + }) + .context("failed to publish nightly version") + } +} From 7c34c05bf6b55552a2dfc1a4809445d119ce8c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:12:38 +0900 Subject: [PATCH 08/28] Dep --- xtask/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index e00073d1b4c1..83d28827f046 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -12,6 +12,7 @@ version = "0.1.0" [dependencies] anyhow = "1.0.75" +chrono = { version = "0.4.31", default-features = false, features = ["windows-targets", "winapi", "iana-time-zone", "libc"] } clap = { version = "4.4.6", features = ["derive"] } semver = "1.0.20" serde = "1.0.188" From 95d1b740dfa3acad7d575ed32e51bf233e9f598d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:13:45 +0900 Subject: [PATCH 09/28] cargo lockfile --- Cargo.lock | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6aea9df1f0e7..b42955c3d86c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,6 +61,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_system_properties" version = "0.1.5" @@ -460,17 +466,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.23" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" +checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" dependencies = [ + "android-tzdata", "iana-time-zone", "js-sys", - "num-integer", "num-traits", - "time 0.1.43", "wasm-bindgen", - "winapi", + "windows-targets", ] [[package]] @@ -5326,16 +5331,6 @@ dependencies = [ "tikv-jemalloc-sys", ] -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "time" version = "0.2.27" @@ -6611,6 +6606,7 @@ name = "xtask" version = "0.1.0" dependencies = [ "anyhow", + "chrono", "clap 4.4.6", "semver 1.0.20", "serde", From 18278078c97b84bc7ceec5652d542376cc6ee40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:14:40 +0900 Subject: [PATCH 10/28] Dep --- xtask/Cargo.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 83d28827f046..aff520f69197 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -11,12 +11,12 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = "1.0.75" -chrono = { version = "0.4.31", default-features = false, features = ["windows-targets", "winapi", "iana-time-zone", "libc"] } -clap = { version = "4.4.6", features = ["derive"] } -semver = "1.0.20" -serde = "1.0.188" +anyhow = "1.0.75" +chrono = "0.4.31" +clap = { version = "4.4.6", features = ["derive"] } +semver = "1.0.20" +serde = "1.0.188" serde_derive = "1.0.188" -serde_json = "1.0.107" -toml = "0.8.2" -walkdir = "2.4.0" +serde_json = "1.0.107" +toml = "0.8.2" +walkdir = "2.4.0" From c00dc86b352354620b356d5bc94763ea11e28162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:20:38 +0900 Subject: [PATCH 11/28] prev --- xtask/src/npm/nightly.rs | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 0f5dae9a4ec9..8ea29f752b89 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -1,5 +1,9 @@ +use std::process::{Command, Stdio}; + use anyhow::{Context, Result}; +use chrono::Utc; use clap::Args; +use semver::{Prerelease, Version}; use crate::util::{repository_root, wrap}; @@ -9,16 +13,45 @@ pub(super) struct NightlyCmd {} impl NightlyCmd { pub fn run(self) -> Result<()> { wrap(|| { + let date = Utc::now().format("%Y%m%d").to_string(); + let root_pkg_json = repository_root()?.join("package.json"); let content = serde_json::from_reader::<_, serde_json::Value>( std::fs::File::open(root_pkg_json).context("failed to open package.json")?, )?; - let version = semver::Version::parse(content["version"].as_str().unwrap())?; + let prev_version = Version::parse(content["version"].as_str().unwrap())?; + + let version = find_first_nightly(&prev_version, &date)?; - dbg!(&version); + println!("Publishing nightly version {}", version); Ok(()) }) .context("failed to publish nightly version") } } + +fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result { + let mut ver = prev_version.clone(); + + for i in 0.. { + ver.pre = Prerelease::new(&format!("nightly.{}.{}", date, i))?; + + let tag = format!("v{}", ver); + + let output = Command::new("git") + .arg("tag") + .arg("-l") + .stderr(Stdio::inherit()) + .output() + .context("git tag -l failed") + .map(|v| v.stdout) + .and_then(|s| String::from_utf8(s).context("git tag -l returned non-utf8"))?; + + if !output.contains(&tag) { + return Ok(ver); + } + } + + unreachable!("failed to find a free nightly version") +} From 95322fc62a555301213a7ff8f7a2728cd881c426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:20:54 +0900 Subject: [PATCH 12/28] 1 --- xtask/src/npm/nightly.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 8ea29f752b89..fc246b060ba4 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -34,7 +34,7 @@ impl NightlyCmd { fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result { let mut ver = prev_version.clone(); - for i in 0.. { + for i in 1.. { ver.pre = Prerelease::new(&format!("nightly.{}.{}", date, i))?; let tag = format!("v{}", ver); From e53da4500eb398164c9cc74d42d35c3e991e9a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:22:58 +0900 Subject: [PATCH 13/28] invoke publish --- xtask/src/npm/nightly.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index fc246b060ba4..7d4dc61c05c1 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -1,6 +1,6 @@ use std::process::{Command, Stdio}; -use anyhow::{Context, Result}; +use anyhow::{bail, Context, Result}; use chrono::Utc; use clap::Args; use semver::{Prerelease, Version}; @@ -25,12 +25,30 @@ impl NightlyCmd { println!("Publishing nightly version {}", version); + invoke_version_script(&version)?; + Ok(()) }) .context("failed to publish nightly version") } } +fn invoke_version_script(version: &Version) -> Result<()> { + let script = repository_root()?.join("scripts/publish.sh"); + + let status = Command::new(script) + .arg(&version.to_string()) + .stderr(Stdio::inherit()) + .status() + .context("failed to invoke publish.sh")?; + + if !status.success() { + bail!("version.sh failed"); + } + + Ok(()) +} + fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result { let mut ver = prev_version.clone(); From dbc674f66d77dcfaabaaca41279de2619672f4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:23:50 +0900 Subject: [PATCH 14/28] cwd --- xtask/src/npm/nightly.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 7d4dc61c05c1..9b0976a05afe 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -37,6 +37,7 @@ fn invoke_version_script(version: &Version) -> Result<()> { let script = repository_root()?.join("scripts/publish.sh"); let status = Command::new(script) + .current_dir(repository_root()?) .arg(&version.to_string()) .stderr(Stdio::inherit()) .status() From 00d595a6d64f5272a895fd1de01e1026b5b26031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:26:44 +0900 Subject: [PATCH 15/28] Dep --- xtask/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index aff520f69197..28879251764b 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -12,6 +12,7 @@ version = "0.1.0" [dependencies] anyhow = "1.0.75" +cargo_metadata = "0.18.0" chrono = "0.4.31" clap = { version = "4.4.6", features = ["derive"] } semver = "1.0.20" From c1a6fd630347c851e45605d53a0b2023f340b841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:26:47 +0900 Subject: [PATCH 16/28] cargo lockfile --- Cargo.lock | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index b42955c3d86c..3fce09841f1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -446,6 +446,20 @@ dependencies = [ "thiserror", ] +[[package]] +name = "cargo_metadata" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb9ac64500cc83ce4b9f8dafa78186aa008c8dea77a09b94cd307fd0cd5022a8" +dependencies = [ + "camino", + "cargo-platform", + "semver 1.0.20", + "serde", + "serde_json", + "thiserror", +] + [[package]] name = "cast" version = "0.3.0" @@ -5232,7 +5246,7 @@ name = "testing" version = "0.35.0" dependencies = [ "ansi_term", - "cargo_metadata", + "cargo_metadata 0.15.4", "difference", "once_cell", "pretty_assertions", @@ -6606,6 +6620,7 @@ name = "xtask" version = "0.1.0" dependencies = [ "anyhow", + "cargo_metadata 0.18.0", "chrono", "clap 4.4.6", "semver 1.0.20", From f7dc9c4f38604aa10d357bd2b14fa4319ce9c321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:27:39 +0900 Subject: [PATCH 17/28] Update swc crates --- xtask/src/npm/mod.rs | 1 + xtask/src/npm/nightly.rs | 7 ++++++- xtask/src/npm/util.rs | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 xtask/src/npm/util.rs diff --git a/xtask/src/npm/mod.rs b/xtask/src/npm/mod.rs index a69d571774f0..816eca4bb7ff 100644 --- a/xtask/src/npm/mod.rs +++ b/xtask/src/npm/mod.rs @@ -4,6 +4,7 @@ use clap::{Args, Subcommand}; use self::nightly::NightlyCmd; mod nightly; +mod util; #[derive(Debug, Args)] pub(super) struct NpmCmd { diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 9b0976a05afe..59c0d6ac2fb3 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -5,7 +5,10 @@ use chrono::Utc; use clap::Args; use semver::{Prerelease, Version}; -use crate::util::{repository_root, wrap}; +use crate::{ + npm::util::update_swc_crates, + util::{repository_root, wrap}, +}; #[derive(Debug, Args)] pub(super) struct NightlyCmd {} @@ -15,6 +18,8 @@ impl NightlyCmd { wrap(|| { let date = Utc::now().format("%Y%m%d").to_string(); + update_swc_crates().context("failed to update swc crates")?; + let root_pkg_json = repository_root()?.join("package.json"); let content = serde_json::from_reader::<_, serde_json::Value>( std::fs::File::open(root_pkg_json).context("failed to open package.json")?, diff --git a/xtask/src/npm/util.rs b/xtask/src/npm/util.rs new file mode 100644 index 000000000000..bd6aaa2fac4c --- /dev/null +++ b/xtask/src/npm/util.rs @@ -0,0 +1,37 @@ +use std::process::Command; + +use anyhow::Result; +use cargo_metadata::MetadataCommand; + +use crate::util::repository_root; + +/// Get the list of swc crates in the main swc repository. +fn get_swc_crates_of_bindings() -> Result> { + let md = MetadataCommand::new() + .current_dir(repository_root()?.join("bindings")) + .exec()?; + + Ok(md + .packages + .iter() + .filter(|p| p.repository.as_deref() == Some("https://github.com/swc-project/swc.git")) + .map(|p| p.name.clone()) + .collect::>()) +} + +pub fn update_swc_crates() -> Result<()> { + let mut c = Command::new("cargo"); + c.current_dir(repository_root()?.join("bindings")); + c.arg("upgrade") + .arg("--incompatible") + .arg("--recursive") + .arg("false"); + + for pkg in get_swc_crates_of_bindings()? { + c.arg("--package").arg(pkg); + } + + c.status()?; + + Ok(()) +} From 245aefbabce0470c84e3c8a115b48324b2cc8fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:28:51 +0900 Subject: [PATCH 18/28] patch+=1 --- xtask/src/npm/nightly.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 59c0d6ac2fb3..8932036db124 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -57,6 +57,7 @@ fn invoke_version_script(version: &Version) -> Result<()> { fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result { let mut ver = prev_version.clone(); + ver.patch += 1; for i in 1.. { ver.pre = Prerelease::new(&format!("nightly.{}.{}", date, i))?; From 17d505cd6664e2ff5872260c8e1b617f8a4d164e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:32:49 +0900 Subject: [PATCH 19/28] cmd --- bindings/Cargo.lock | 100 +++++++++--------- bindings/binding_core_node/Cargo.toml | 2 +- bindings/binding_core_wasm/Cargo.toml | 2 +- bindings/binding_minifier_node/Cargo.toml | 4 +- bindings/binding_minifier_wasm/Cargo.toml | 2 +- bindings/swc_cli/Cargo.toml | 2 +- package.json | 2 +- packages/minifier/package.json | 2 +- .../scripts/npm/darwin-arm64/package.json | 82 +++++++------- .../scripts/npm/darwin-x64/package.json | 82 +++++++------- .../npm/linux-arm-gnueabihf/package.json | 82 +++++++------- .../scripts/npm/linux-arm64-gnu/package.json | 88 +++++++-------- .../scripts/npm/linux-arm64-musl/package.json | 88 +++++++-------- .../scripts/npm/linux-x64-gnu/package.json | 88 +++++++-------- .../scripts/npm/linux-x64-musl/package.json | 88 +++++++-------- .../scripts/npm/win32-arm64-msvc/package.json | 82 +++++++------- .../scripts/npm/win32-ia32-msvc/package.json | 82 +++++++------- .../scripts/npm/win32-x64-msvc/package.json | 82 +++++++------- scripts/npm/darwin-arm64/package.json | 2 +- scripts/npm/darwin-x64/package.json | 2 +- scripts/npm/linux-arm-gnueabihf/package.json | 2 +- scripts/npm/linux-arm64-gnu/package.json | 2 +- scripts/npm/linux-arm64-musl/package.json | 2 +- scripts/npm/linux-x64-gnu/package.json | 2 +- scripts/npm/linux-x64-musl/package.json | 2 +- scripts/npm/win32-arm64-msvc/package.json | 2 +- scripts/npm/win32-ia32-msvc/package.json | 2 +- scripts/npm/win32-x64-msvc/package.json | 2 +- xtask/src/npm/nightly.rs | 22 +--- xtask/src/npm/util.rs | 56 +++++++++- 30 files changed, 548 insertions(+), 510 deletions(-) diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock index 8255d98b642f..389df9369fe7 100644 --- a/bindings/Cargo.lock +++ b/bindings/Cargo.lock @@ -242,9 +242,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.58.0" +version = "0.59.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "593b0522d776b79de76df58cba9ef468de3c8103cc05c934859979382b877102" +checksum = "3ec5bafb9c2c277d98f3c3b7eae52612fd6cf1eeef60970fa47b34520b22491e" dependencies = [ "anyhow", "console_error_panic_hook", @@ -2839,9 +2839,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.267.0" +version = "0.268.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5dbbe460bdd534020e387e6447efa5444b08cc6b536aab56cab56657ecb01c4" +checksum = "029b7c1ca95e4e8f99a5fccec6347359e639084997ec777d818b4495aec3d603" dependencies = [ "anyhow", "base64 0.13.1", @@ -2907,9 +2907,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.221.0" +version = "0.221.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b3d13510667f7ad463a5ce608565da0980b90d052af2f118c4632ec1aa8009" +checksum = "35ad831c0643dd3233ae40d15778e8ae0aeda581eedc51a1eff847fe3e60d54d" dependencies = [ "anyhow", "crc", @@ -2961,9 +2961,9 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "0.2.0" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "568afc9a0cd748adfda05da6f03b4161c02dd76d27974e22ad01abef385b457f" +checksum = "8704253e66ec8e49bea3536464d4b1dc3b6e239c151befd8f11ebdf5d4df735c" dependencies = [ "anyhow", "atty", @@ -3017,9 +3017,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.2.0" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc8cd45d5dd84801b6ddcf4c093679bd1533cf49159074e523ecbcb8a02457a0" +checksum = "348e11f83c454d637ba111e15db7009719d1a4179bb9ebba15b3f7fcdff23d1d" dependencies = [ "anyhow", "base64 0.13.1", @@ -3066,9 +3066,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.84.0" +version = "0.85.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b97434f67538ed8c59f1725c108e3d1d9595668715991223481f0dcab0a301e" +checksum = "f3c312c3a84ef535b978ce388fb02b0a3b11f7c56adc8d3ed90777788996e43e" dependencies = [ "binding_macros", "swc", @@ -3112,9 +3112,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.146.0" +version = "0.146.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87d1863e83d8cfae20abe9565b1995a4fdb042c9abfde8b1a495984de63ccede" +checksum = "1fba119c76654599b71099a0150094f5790f00db63aab6cda1790e731f42c98f" dependencies = [ "memchr", "num-bigint", @@ -3144,9 +3144,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.110.0" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73e666436a2d8d88f39999754c3476dc32152d714881da91e940e70e2f0c716a" +checksum = "49f6968f03dac07897aa44f73237254bd862230f1c1e953746228ab28d688eab" dependencies = [ "phf", "swc_atoms", @@ -3158,9 +3158,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6454bad17e39e6c07e10402ee8eaf23b491442c8195f333754cc4978b4dc49bf" +checksum = "c7177da6ccfb0d73c1f5b05d3ad6b81a5044705356099f435e2bb2141e09ee9e" dependencies = [ "auto_impl", "dashmap", @@ -3199,9 +3199,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.188.0" +version = "0.188.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7180fd21d3227f5f3b74a0efc8952c41b0670274ff223af00f8d76f79c5f251e" +checksum = "2e4e1dee38fcacee6807870170495ca4b778deed1afb7996fc244d8e40e35644" dependencies = [ "arrayvec", "indexmap", @@ -3234,9 +3234,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.141.0" +version = "0.141.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe5ca14b492cb4a27b6624043496c3b7e8233891df39b4876eb6c85e59a26c4" +checksum = "a26e535c623db7beb04ba8ebfa821c287b72a23f9fb523990b54db6c1355c990" dependencies = [ "either", "num-bigint", @@ -3254,9 +3254,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.202.0" +version = "0.202.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40b5ae00d7a0c0f27543dc0fbf6ff99f66059ab58cad6aa0a4ed8c4a0cc75a2" +checksum = "f60f4053a83c54e5e46a6a3d347722a1db6247ba4985be0415b30ef60d7dfa5a" dependencies = [ "anyhow", "dashmap", @@ -3279,9 +3279,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.225.0" +version = "0.225.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd30bafc2bf2dd492ee35c2743219db6d1cd7185381f66d58f58c5fdb533c4f" +checksum = "665c0b48784d1c439388de25e7662d02e74654bd1911cfde054af03a0bca129d" dependencies = [ "swc_atoms", "swc_common", @@ -3299,9 +3299,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.134.0" +version = "0.134.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45d22969bd30d953cd5d217dda6d50d0f2fc15e058c373cfdb9971a2f455e457" +checksum = "9cdd180f14b0d468401483d0a9034bc1cb479b4548a5e3e798fff78a6b428c38" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -3323,9 +3323,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.123.0" +version = "0.123.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e92abafe8caba4512f1a1a4db084c485fb823575eddd5322dae8e4144077cbc" +checksum = "95b258ad9055108f7b597de768f5baf30b6ad9a667e32b233c1ce16f6ee332f8" dependencies = [ "swc_atoms", "swc_common", @@ -3337,9 +3337,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.160.0" +version = "0.160.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "113316034a81c6a8f72571bc1b8950d928c6749aabd6ed9538499b3368a9e24b" +checksum = "a4dbf738679298d62670b5d62b5cf10298c86567b9e1ff3cbd305662e5a5e340" dependencies = [ "arrayvec", "indexmap", @@ -3376,9 +3376,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.177.0" +version = "0.177.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82deb562fcefb3a99f4de5249219c3808ac6cb9f470cdf2670e918db0880bc5c" +checksum = "5d02949817b6e7af2848747086dec80183f121128e72959b05338dbdedd93fd3" dependencies = [ "Inflector", "anyhow", @@ -3403,9 +3403,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.194.0" +version = "0.194.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbc8e06ed24b9e551c6ad3d9a8ec4e7573facae0cc72a773a2b711273762a28c" +checksum = "8dce9a9482b492a7d258da12942a57b529b38abec2d9c0a80c8b5d877976110d" dependencies = [ "dashmap", "indexmap", @@ -3428,9 +3428,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.168.0" +version = "0.168.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23411d3838091abe9248e2a8963f244a3c452252a28c282591028693c7d7f163" +checksum = "04eed2a8ffa91a5595d9420b83d180a0244c351eaa5057133164114773c0adba" dependencies = [ "either", "rustc-hash", @@ -3448,9 +3448,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.180.0" +version = "0.180.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f652ec2d432414789b5d6bc1c18bdcad09769d33a47af6e93d739a3f1e34551c" +checksum = "78c6af6af0c2414bc38ac41bc117c52e6df556d85a56e9ed2b021d0d085523c6" dependencies = [ "base64 0.13.1", "dashmap", @@ -3473,9 +3473,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.184.0" +version = "0.184.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8aefd5c86be649b40be01c765c7d6272104286c0d6bc7546450d9833f2f6299" +checksum = "d551c9d4feb5e731fe14e062511ccfc6a2b084ccfc6b32d597718ca84e9e3cb3" dependencies = [ "ryu-js", "serde", @@ -3490,9 +3490,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.20.0" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d331ba773603ef1e2e64394d7179f2615e734302b842af68271cdb5f04f001" +checksum = "64f48eb04f6ec513e9e66b833d14bad0990124185580cbd81c15ae9579e4481b" dependencies = [ "indexmap", "rustc-hash", @@ -3507,9 +3507,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.124.0" +version = "0.124.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83ded5277c882211a7271e285863bfec54715eafd9b2b4fd7421635310c9d3e4" +checksum = "ff63e55fd405696658ef743ea3668a98647f905de7b636918d376e86d4b5d115" dependencies = [ "indexmap", "num_cpus", @@ -3613,9 +3613,9 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.56.0" +version = "0.57.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94c60a884be4d36a516da1d1d3363f50c8a51ef78d3f9423916c814036fdfdd8" +checksum = "2724dfceadeafd4f9a626a5e8c057c4550cbf75991c08006aa5b11a4e5feed27" dependencies = [ "anyhow", "dashmap", @@ -3681,9 +3681,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.103.0" +version = "0.104.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31d9c254a600f964ee5f6d69d655d5f6f2296d33b6bff153f4ea72b07a305b7f" +checksum = "86c58e6dfbcc59185e9c557d952f431c5140ed546cfebc053ad0b082c4a3e4e4" dependencies = [ "anyhow", "enumset", diff --git a/bindings/binding_core_node/Cargo.toml b/bindings/binding_core_node/Cargo.toml index 867eefb13b60..52439db4e597 100644 --- a/bindings/binding_core_node/Cargo.toml +++ b/bindings/binding_core_node/Cargo.toml @@ -51,7 +51,7 @@ tracing-chrome = "0.5.0" tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } -swc_core = { version = "0.84.0", features = [ +swc_core = { version = "0.85.4", features = [ "allocator_node", "ecma_ast", "ecma_codegen", diff --git a/bindings/binding_core_wasm/Cargo.toml b/bindings/binding_core_wasm/Cargo.toml index 69e14d55cc6c..f627eb77339c 100644 --- a/bindings/binding_core_wasm/Cargo.toml +++ b/bindings/binding_core_wasm/Cargo.toml @@ -35,7 +35,7 @@ anyhow = "1.0.66" getrandom = { version = "0.2.10", features = ["js"] } serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.84.0", features = [ +swc_core = { version = "0.85.4", features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", diff --git a/bindings/binding_minifier_node/Cargo.toml b/bindings/binding_minifier_node/Cargo.toml index c824dcd2b7de..cd60f3f8ce83 100644 --- a/bindings/binding_minifier_node/Cargo.toml +++ b/bindings/binding_minifier_node/Cargo.toml @@ -35,9 +35,9 @@ tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } sourcemap = "6.0.0" -swc_compiler_base = { version = "0.2.0", features = ["node"] } +swc_compiler_base = { version = "0.2.5", features = ["node"] } swc_config = "0.1.7" -swc_core = { version = "0.84.0", features = [ +swc_core = { version = "0.85.4", features = [ "allocator_node", "common_concurrent", "common_sourcemap", diff --git a/bindings/binding_minifier_wasm/Cargo.toml b/bindings/binding_minifier_wasm/Cargo.toml index 02c6e88edf46..71cbc042ce9d 100644 --- a/bindings/binding_minifier_wasm/Cargo.toml +++ b/bindings/binding_minifier_wasm/Cargo.toml @@ -35,7 +35,7 @@ anyhow = "1.0.66" getrandom = { version = "0.2.10", features = ["js"] } serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.84.0", features = [ +swc_core = { version = "0.85.4", features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", diff --git a/bindings/swc_cli/Cargo.toml b/bindings/swc_cli/Cargo.toml index 6fefd99d783e..43a6f52782de 100644 --- a/bindings/swc_cli/Cargo.toml +++ b/bindings/swc_cli/Cargo.toml @@ -23,5 +23,5 @@ plugin = [ [dependencies] anyhow = "1.0.66" -swc_cli_impl = "0.2.0" +swc_cli_impl = "0.3.4" diff --git a/package.json b/package.json index 5facb2704f6f..8e9226120c3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "description": "Super-fast alternative for babel", "homepage": "https://swc.rs", "main": "./index.js", diff --git a/packages/minifier/package.json b/packages/minifier/package.json index 869ee15c50c2..cbff3010e941 100644 --- a/packages/minifier/package.json +++ b/packages/minifier/package.json @@ -1,6 +1,6 @@ { "name": "@swc/minifier", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "description": "Super-fast alternative for terser", "homepage": "https://swc.rs", "main": "./index.js", diff --git a/packages/minifier/scripts/npm/darwin-arm64/package.json b/packages/minifier/scripts/npm/darwin-arm64/package.json index cdbf2ae5acce..e56081f22aba 100644 --- a/packages/minifier/scripts/npm/darwin-arm64/package.json +++ b/packages/minifier/scripts/npm/darwin-arm64/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-darwin-arm64", - "version": "1.2.130", - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.darwin-arm64.node", - "files": [ - "minifier.darwin-arm64.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-darwin-arm64", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.darwin-arm64.node", + "files": [ + "minifier.darwin-arm64.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/darwin-x64/package.json b/packages/minifier/scripts/npm/darwin-x64/package.json index 0984c4d57e9f..aa3b3e6940e0 100644 --- a/packages/minifier/scripts/npm/darwin-x64/package.json +++ b/packages/minifier/scripts/npm/darwin-x64/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-darwin-x64", - "version": "1.2.130", - "os": [ - "darwin" - ], - "cpu": [ - "x64" - ], - "main": "minifier.darwin-x64.node", - "files": [ - "minifier.darwin-x64.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-darwin-x64", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ], + "main": "minifier.darwin-x64.node", + "files": [ + "minifier.darwin-x64.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json b/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json index 71dbd52359d4..b0631a659b63 100644 --- a/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json +++ b/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-linux-arm-gnueabihf", - "version": "1.2.130", - "os": [ - "linux" - ], - "cpu": [ - "arm" - ], - "main": "minifier.linux-arm-gnueabihf.node", - "files": [ - "minifier.linux-arm-gnueabihf.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-linux-arm-gnueabihf", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "linux" + ], + "cpu": [ + "arm" + ], + "main": "minifier.linux-arm-gnueabihf.node", + "files": [ + "minifier.linux-arm-gnueabihf.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/linux-arm64-gnu/package.json b/packages/minifier/scripts/npm/linux-arm64-gnu/package.json index bc1aceb51b39..2784fe2e5cd0 100644 --- a/packages/minifier/scripts/npm/linux-arm64-gnu/package.json +++ b/packages/minifier/scripts/npm/linux-arm64-gnu/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-arm64-gnu", - "version": "1.2.130", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.linux-arm64-gnu.node", - "files": [ - "minifier.linux-arm64-gnu.node", - "swc" - ], - "libc": [ - "glibc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-linux-arm64-gnu", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.linux-arm64-gnu.node", + "files": [ + "minifier.linux-arm64-gnu.node", + "swc" + ], + "libc": [ + "glibc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/linux-arm64-musl/package.json b/packages/minifier/scripts/npm/linux-arm64-musl/package.json index bf01d3be27f8..5b5a63f985c9 100644 --- a/packages/minifier/scripts/npm/linux-arm64-musl/package.json +++ b/packages/minifier/scripts/npm/linux-arm64-musl/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-arm64-musl", - "version": "1.2.130", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.linux-arm64-musl.node", - "files": [ - "minifier.linux-arm64-musl.node", - "swc" - ], - "libc": [ - "musl" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-linux-arm64-musl", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.linux-arm64-musl.node", + "files": [ + "minifier.linux-arm64-musl.node", + "swc" + ], + "libc": [ + "musl" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/linux-x64-gnu/package.json b/packages/minifier/scripts/npm/linux-x64-gnu/package.json index cd447151af39..832e35b0b87c 100644 --- a/packages/minifier/scripts/npm/linux-x64-gnu/package.json +++ b/packages/minifier/scripts/npm/linux-x64-gnu/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-x64-gnu", - "version": "1.2.130", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "minifier.linux-x64-gnu.node", - "files": [ - "minifier.linux-x64-gnu.node", - "swc" - ], - "libc": [ - "glibc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-linux-x64-gnu", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "main": "minifier.linux-x64-gnu.node", + "files": [ + "minifier.linux-x64-gnu.node", + "swc" + ], + "libc": [ + "glibc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/linux-x64-musl/package.json b/packages/minifier/scripts/npm/linux-x64-musl/package.json index b2cdbbd2954b..f77a9e6251fb 100644 --- a/packages/minifier/scripts/npm/linux-x64-musl/package.json +++ b/packages/minifier/scripts/npm/linux-x64-musl/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-x64-musl", - "version": "1.2.130", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "minifier.linux-x64-musl.node", - "files": [ - "minifier.linux-x64-musl.node", - "swc" - ], - "libc": [ - "musl" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-linux-x64-musl", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "main": "minifier.linux-x64-musl.node", + "files": [ + "minifier.linux-x64-musl.node", + "swc" + ], + "libc": [ + "musl" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/win32-arm64-msvc/package.json b/packages/minifier/scripts/npm/win32-arm64-msvc/package.json index aac96df38cde..7551ff096a92 100644 --- a/packages/minifier/scripts/npm/win32-arm64-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-arm64-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-arm64-msvc", - "version": "1.2.130", - "os": [ - "win32" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.win32-arm64-msvc.node", - "files": [ - "minifier.win32-arm64-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-win32-arm64-msvc", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.win32-arm64-msvc.node", + "files": [ + "minifier.win32-arm64-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/win32-ia32-msvc/package.json b/packages/minifier/scripts/npm/win32-ia32-msvc/package.json index 62635f5a9d58..0a18bfc558de 100644 --- a/packages/minifier/scripts/npm/win32-ia32-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-ia32-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-ia32-msvc", - "version": "1.2.130", - "os": [ - "win32" - ], - "cpu": [ - "ia32" - ], - "main": "minifier.win32-ia32-msvc.node", - "files": [ - "minifier.win32-ia32-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-win32-ia32-msvc", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "win32" + ], + "cpu": [ + "ia32" + ], + "main": "minifier.win32-ia32-msvc.node", + "files": [ + "minifier.win32-ia32-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/packages/minifier/scripts/npm/win32-x64-msvc/package.json b/packages/minifier/scripts/npm/win32-x64-msvc/package.json index f431731e2695..a418ef3c430a 100644 --- a/packages/minifier/scripts/npm/win32-x64-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-x64-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-x64-msvc", - "version": "1.2.130", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "main": "minifier.win32-x64-msvc.node", - "files": [ - "minifier.win32-x64-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} + "name": "@swc/minifier-win32-x64-msvc", + "version": "1.3.93-nightly.20231011.1", + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], + "main": "minifier.win32-x64-msvc.node", + "files": [ + "minifier.win32-x64-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} \ No newline at end of file diff --git a/scripts/npm/darwin-arm64/package.json b/scripts/npm/darwin-arm64/package.json index e7161de87fc3..06096c109747 100644 --- a/scripts/npm/darwin-arm64/package.json +++ b/scripts/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-darwin-arm64", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "darwin" ], diff --git a/scripts/npm/darwin-x64/package.json b/scripts/npm/darwin-x64/package.json index cf19812129c6..547a1a0b965f 100644 --- a/scripts/npm/darwin-x64/package.json +++ b/scripts/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-darwin-x64", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "darwin" ], diff --git a/scripts/npm/linux-arm-gnueabihf/package.json b/scripts/npm/linux-arm-gnueabihf/package.json index 68558c8994c3..3bf21bee34ab 100644 --- a/scripts/npm/linux-arm-gnueabihf/package.json +++ b/scripts/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm-gnueabihf", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "linux" ], diff --git a/scripts/npm/linux-arm64-gnu/package.json b/scripts/npm/linux-arm64-gnu/package.json index 25fba6d78911..5c450315d66a 100644 --- a/scripts/npm/linux-arm64-gnu/package.json +++ b/scripts/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm64-gnu", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "linux" ], diff --git a/scripts/npm/linux-arm64-musl/package.json b/scripts/npm/linux-arm64-musl/package.json index 00d929774742..b4ccfd94b084 100644 --- a/scripts/npm/linux-arm64-musl/package.json +++ b/scripts/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm64-musl", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "linux" ], diff --git a/scripts/npm/linux-x64-gnu/package.json b/scripts/npm/linux-x64-gnu/package.json index 616bc00eeba2..46c544ecfd5d 100644 --- a/scripts/npm/linux-x64-gnu/package.json +++ b/scripts/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-x64-gnu", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "linux" ], diff --git a/scripts/npm/linux-x64-musl/package.json b/scripts/npm/linux-x64-musl/package.json index d9c605a8765b..306d9aa4a01d 100644 --- a/scripts/npm/linux-x64-musl/package.json +++ b/scripts/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-x64-musl", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "linux" ], diff --git a/scripts/npm/win32-arm64-msvc/package.json b/scripts/npm/win32-arm64-msvc/package.json index 412e6588245c..c2446c45ec2d 100644 --- a/scripts/npm/win32-arm64-msvc/package.json +++ b/scripts/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-arm64-msvc", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "win32" ], diff --git a/scripts/npm/win32-ia32-msvc/package.json b/scripts/npm/win32-ia32-msvc/package.json index 3cdf37b3af41..4fef0c17ea13 100644 --- a/scripts/npm/win32-ia32-msvc/package.json +++ b/scripts/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-ia32-msvc", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "win32" ], diff --git a/scripts/npm/win32-x64-msvc/package.json b/scripts/npm/win32-x64-msvc/package.json index ea3540f0ef8e..9fd79fbe2167 100644 --- a/scripts/npm/win32-x64-msvc/package.json +++ b/scripts/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-x64-msvc", - "version": "1.3.92", + "version": "1.3.93-nightly.20231011.1", "os": [ "win32" ], diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index 8932036db124..a4626be08d04 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -6,7 +6,7 @@ use clap::Args; use semver::{Prerelease, Version}; use crate::{ - npm::util::update_swc_crates, + npm::util::{bump_swc_cli, set_version, update_swc_crates}, util::{repository_root, wrap}, }; @@ -30,7 +30,8 @@ impl NightlyCmd { println!("Publishing nightly version {}", version); - invoke_version_script(&version)?; + set_version(&version).context("failed to set version")?; + bump_swc_cli().context("failed to bump swc-cli")?; Ok(()) }) @@ -38,23 +39,6 @@ impl NightlyCmd { } } -fn invoke_version_script(version: &Version) -> Result<()> { - let script = repository_root()?.join("scripts/publish.sh"); - - let status = Command::new(script) - .current_dir(repository_root()?) - .arg(&version.to_string()) - .stderr(Stdio::inherit()) - .status() - .context("failed to invoke publish.sh")?; - - if !status.success() { - bail!("version.sh failed"); - } - - Ok(()) -} - fn find_first_nightly(prev_version: &semver::Version, date: &str) -> Result { let mut ver = prev_version.clone(); ver.patch += 1; diff --git a/xtask/src/npm/util.rs b/xtask/src/npm/util.rs index bd6aaa2fac4c..d6f014dfba0d 100644 --- a/xtask/src/npm/util.rs +++ b/xtask/src/npm/util.rs @@ -1,7 +1,8 @@ -use std::process::Command; +use std::{path::Path, process::Command}; use anyhow::Result; use cargo_metadata::MetadataCommand; +use semver::Version; use crate::util::repository_root; @@ -35,3 +36,56 @@ pub fn update_swc_crates() -> Result<()> { Ok(()) } + +pub fn set_version(version: &Version) -> Result<()> { + { + let mut c = Command::new("npm"); + c.current_dir(repository_root()?); + c.arg("version") + .arg(version.to_string()) + .arg("--no-git-tag-version") + .arg("--allow-same-version"); + + c.status()?; + } + + { + let mut c = Command::new("npm"); + c.current_dir(repository_root()?.join("packages").join("minifier")); + c.arg("version") + .arg(version.to_string()) + .arg("--no-git-tag-version") + .arg("--allow-same-version"); + + c.status()?; + } + + { + let mut c = Command::new("cargo"); + c.current_dir(repository_root()?.join("bindings")); + c.arg("set-version") + .arg(version.to_string()) + .arg("-p") + .arg("binding_core_wasm") + .arg("-p") + .arg("binding_minifier_wasm"); + + c.status()?; + } + + Ok(()) +} + +pub fn bump_swc_cli() -> Result<()> { + let mut c = Command::new("cargo"); + c.current_dir(repository_root()?.join("bindings")); + c.arg("set-version") + .arg("--bump") + .arg("patch") + .arg("-p") + .arg("swc_cli"); + + c.status()?; + + Ok(()) +} From ad2ec281162a66bcd40ca79279ff8cbc9945592b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:33:03 +0900 Subject: [PATCH 20/28] imports --- xtask/src/npm/nightly.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index a4626be08d04..b5c267ac6511 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -1,6 +1,6 @@ use std::process::{Command, Stdio}; -use anyhow::{bail, Context, Result}; +use anyhow::{Context, Result}; use chrono::Utc; use clap::Args; use semver::{Prerelease, Version}; From 013857a6576dd189e9383e1a63f58194aac174f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:33:05 +0900 Subject: [PATCH 21/28] fixup --- xtask/src/npm/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/npm/util.rs b/xtask/src/npm/util.rs index d6f014dfba0d..513e822b81c0 100644 --- a/xtask/src/npm/util.rs +++ b/xtask/src/npm/util.rs @@ -1,4 +1,4 @@ -use std::{path::Path, process::Command}; +use std::process::Command; use anyhow::Result; use cargo_metadata::MetadataCommand; From 2369f25d5c74a6966e377c788daa226a1fcfb7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:35:24 +0900 Subject: [PATCH 22/28] wrap --- xtask/src/npm/util.rs | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/xtask/src/npm/util.rs b/xtask/src/npm/util.rs index 513e822b81c0..e8d472195a56 100644 --- a/xtask/src/npm/util.rs +++ b/xtask/src/npm/util.rs @@ -1,10 +1,10 @@ use std::process::Command; -use anyhow::Result; +use anyhow::{Context, Result}; use cargo_metadata::MetadataCommand; use semver::Version; -use crate::util::repository_root; +use crate::util::{repository_root, wrap}; /// Get the list of swc crates in the main swc repository. fn get_swc_crates_of_bindings() -> Result> { @@ -38,7 +38,7 @@ pub fn update_swc_crates() -> Result<()> { } pub fn set_version(version: &Version) -> Result<()> { - { + wrap(|| { let mut c = Command::new("npm"); c.current_dir(repository_root()?); c.arg("version") @@ -47,9 +47,12 @@ pub fn set_version(version: &Version) -> Result<()> { .arg("--allow-same-version"); c.status()?; - } - { + Ok(()) + }) + .with_context(|| format!("failed to set version of @swc/core to v{}", version))?; + + wrap(|| { let mut c = Command::new("npm"); c.current_dir(repository_root()?.join("packages").join("minifier")); c.arg("version") @@ -58,9 +61,12 @@ pub fn set_version(version: &Version) -> Result<()> { .arg("--allow-same-version"); c.status()?; - } - { + Ok(()) + }) + .with_context(|| format!("failed to set version of @swc/minifier to v{}", version))?; + + wrap(|| { let mut c = Command::new("cargo"); c.current_dir(repository_root()?.join("bindings")); c.arg("set-version") @@ -71,7 +77,9 @@ pub fn set_version(version: &Version) -> Result<()> { .arg("binding_minifier_wasm"); c.status()?; - } + Ok(()) + }) + .with_context(|| format!("failed to set version of Wasm packages to v{}", version))?; Ok(()) } From a7fc96eaa42e5f14ce009017a63613c70f4e74b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:36:27 +0900 Subject: [PATCH 23/28] REvert --- bindings/Cargo.lock | 100 +++++++++--------- bindings/binding_core_node/Cargo.toml | 2 +- bindings/binding_core_wasm/Cargo.toml | 2 +- bindings/binding_minifier_node/Cargo.toml | 4 +- bindings/binding_minifier_wasm/Cargo.toml | 2 +- bindings/swc_cli/Cargo.toml | 2 +- packages/minifier/package.json | 2 +- .../scripts/npm/darwin-arm64/package.json | 82 +++++++------- .../scripts/npm/darwin-x64/package.json | 82 +++++++------- .../npm/linux-arm-gnueabihf/package.json | 82 +++++++------- .../scripts/npm/linux-arm64-gnu/package.json | 88 +++++++-------- .../scripts/npm/linux-arm64-musl/package.json | 88 +++++++-------- .../scripts/npm/linux-x64-gnu/package.json | 88 +++++++-------- .../scripts/npm/linux-x64-musl/package.json | 88 +++++++-------- .../scripts/npm/win32-arm64-msvc/package.json | 82 +++++++------- .../scripts/npm/win32-ia32-msvc/package.json | 82 +++++++------- .../scripts/npm/win32-x64-msvc/package.json | 82 +++++++------- scripts/npm/darwin-arm64/package.json | 2 +- scripts/npm/darwin-x64/package.json | 2 +- scripts/npm/linux-arm-gnueabihf/package.json | 2 +- scripts/npm/linux-arm64-gnu/package.json | 2 +- scripts/npm/linux-arm64-musl/package.json | 2 +- scripts/npm/linux-x64-gnu/package.json | 2 +- scripts/npm/linux-x64-musl/package.json | 2 +- scripts/npm/win32-arm64-msvc/package.json | 2 +- scripts/npm/win32-ia32-msvc/package.json | 2 +- scripts/npm/win32-x64-msvc/package.json | 2 +- 27 files changed, 489 insertions(+), 489 deletions(-) diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock index 389df9369fe7..8255d98b642f 100644 --- a/bindings/Cargo.lock +++ b/bindings/Cargo.lock @@ -242,9 +242,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.59.4" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ec5bafb9c2c277d98f3c3b7eae52612fd6cf1eeef60970fa47b34520b22491e" +checksum = "593b0522d776b79de76df58cba9ef468de3c8103cc05c934859979382b877102" dependencies = [ "anyhow", "console_error_panic_hook", @@ -2839,9 +2839,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.268.4" +version = "0.267.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029b7c1ca95e4e8f99a5fccec6347359e639084997ec777d818b4495aec3d603" +checksum = "d5dbbe460bdd534020e387e6447efa5444b08cc6b536aab56cab56657ecb01c4" dependencies = [ "anyhow", "base64 0.13.1", @@ -2907,9 +2907,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.221.5" +version = "0.221.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35ad831c0643dd3233ae40d15778e8ae0aeda581eedc51a1eff847fe3e60d54d" +checksum = "05b3d13510667f7ad463a5ce608565da0980b90d052af2f118c4632ec1aa8009" dependencies = [ "anyhow", "crc", @@ -2961,9 +2961,9 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "0.3.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8704253e66ec8e49bea3536464d4b1dc3b6e239c151befd8f11ebdf5d4df735c" +checksum = "568afc9a0cd748adfda05da6f03b4161c02dd76d27974e22ad01abef385b457f" dependencies = [ "anyhow", "atty", @@ -3017,9 +3017,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.2.5" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "348e11f83c454d637ba111e15db7009719d1a4179bb9ebba15b3f7fcdff23d1d" +checksum = "fc8cd45d5dd84801b6ddcf4c093679bd1533cf49159074e523ecbcb8a02457a0" dependencies = [ "anyhow", "base64 0.13.1", @@ -3066,9 +3066,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.85.4" +version = "0.84.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c312c3a84ef535b978ce388fb02b0a3b11f7c56adc8d3ed90777788996e43e" +checksum = "1b97434f67538ed8c59f1725c108e3d1d9595668715991223481f0dcab0a301e" dependencies = [ "binding_macros", "swc", @@ -3112,9 +3112,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.146.1" +version = "0.146.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fba119c76654599b71099a0150094f5790f00db63aab6cda1790e731f42c98f" +checksum = "87d1863e83d8cfae20abe9565b1995a4fdb042c9abfde8b1a495984de63ccede" dependencies = [ "memchr", "num-bigint", @@ -3144,9 +3144,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.110.2" +version = "0.110.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f6968f03dac07897aa44f73237254bd862230f1c1e953746228ab28d688eab" +checksum = "73e666436a2d8d88f39999754c3476dc32152d714881da91e940e70e2f0c716a" dependencies = [ "phf", "swc_atoms", @@ -3158,9 +3158,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.89.2" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7177da6ccfb0d73c1f5b05d3ad6b81a5044705356099f435e2bb2141e09ee9e" +checksum = "6454bad17e39e6c07e10402ee8eaf23b491442c8195f333754cc4978b4dc49bf" dependencies = [ "auto_impl", "dashmap", @@ -3199,9 +3199,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.188.5" +version = "0.188.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e4e1dee38fcacee6807870170495ca4b778deed1afb7996fc244d8e40e35644" +checksum = "7180fd21d3227f5f3b74a0efc8952c41b0670274ff223af00f8d76f79c5f251e" dependencies = [ "arrayvec", "indexmap", @@ -3234,9 +3234,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.141.1" +version = "0.141.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26e535c623db7beb04ba8ebfa821c287b72a23f9fb523990b54db6c1355c990" +checksum = "dbe5ca14b492cb4a27b6624043496c3b7e8233891df39b4876eb6c85e59a26c4" dependencies = [ "either", "num-bigint", @@ -3254,9 +3254,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.202.5" +version = "0.202.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60f4053a83c54e5e46a6a3d347722a1db6247ba4985be0415b30ef60d7dfa5a" +checksum = "b40b5ae00d7a0c0f27543dc0fbf6ff99f66059ab58cad6aa0a4ed8c4a0cc75a2" dependencies = [ "anyhow", "dashmap", @@ -3279,9 +3279,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.225.5" +version = "0.225.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "665c0b48784d1c439388de25e7662d02e74654bd1911cfde054af03a0bca129d" +checksum = "9fd30bafc2bf2dd492ee35c2743219db6d1cd7185381f66d58f58c5fdb533c4f" dependencies = [ "swc_atoms", "swc_common", @@ -3299,9 +3299,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.134.2" +version = "0.134.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdd180f14b0d468401483d0a9034bc1cb479b4548a5e3e798fff78a6b428c38" +checksum = "45d22969bd30d953cd5d217dda6d50d0f2fc15e058c373cfdb9971a2f455e457" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -3323,9 +3323,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.123.2" +version = "0.123.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95b258ad9055108f7b597de768f5baf30b6ad9a667e32b233c1ce16f6ee332f8" +checksum = "1e92abafe8caba4512f1a1a4db084c485fb823575eddd5322dae8e4144077cbc" dependencies = [ "swc_atoms", "swc_common", @@ -3337,9 +3337,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.160.3" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4dbf738679298d62670b5d62b5cf10298c86567b9e1ff3cbd305662e5a5e340" +checksum = "113316034a81c6a8f72571bc1b8950d928c6749aabd6ed9538499b3368a9e24b" dependencies = [ "arrayvec", "indexmap", @@ -3376,9 +3376,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.177.3" +version = "0.177.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d02949817b6e7af2848747086dec80183f121128e72959b05338dbdedd93fd3" +checksum = "82deb562fcefb3a99f4de5249219c3808ac6cb9f470cdf2670e918db0880bc5c" dependencies = [ "Inflector", "anyhow", @@ -3403,9 +3403,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.194.5" +version = "0.194.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dce9a9482b492a7d258da12942a57b529b38abec2d9c0a80c8b5d877976110d" +checksum = "cbc8e06ed24b9e551c6ad3d9a8ec4e7573facae0cc72a773a2b711273762a28c" dependencies = [ "dashmap", "indexmap", @@ -3428,9 +3428,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.168.5" +version = "0.168.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04eed2a8ffa91a5595d9420b83d180a0244c351eaa5057133164114773c0adba" +checksum = "23411d3838091abe9248e2a8963f244a3c452252a28c282591028693c7d7f163" dependencies = [ "either", "rustc-hash", @@ -3448,9 +3448,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.180.3" +version = "0.180.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c6af6af0c2414bc38ac41bc117c52e6df556d85a56e9ed2b021d0d085523c6" +checksum = "f652ec2d432414789b5d6bc1c18bdcad09769d33a47af6e93d739a3f1e34551c" dependencies = [ "base64 0.13.1", "dashmap", @@ -3473,9 +3473,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.184.5" +version = "0.184.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d551c9d4feb5e731fe14e062511ccfc6a2b084ccfc6b32d597718ca84e9e3cb3" +checksum = "d8aefd5c86be649b40be01c765c7d6272104286c0d6bc7546450d9833f2f6299" dependencies = [ "ryu-js", "serde", @@ -3490,9 +3490,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.20.2" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64f48eb04f6ec513e9e66b833d14bad0990124185580cbd81c15ae9579e4481b" +checksum = "23d331ba773603ef1e2e64394d7179f2615e734302b842af68271cdb5f04f001" dependencies = [ "indexmap", "rustc-hash", @@ -3507,9 +3507,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.124.2" +version = "0.124.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff63e55fd405696658ef743ea3668a98647f905de7b636918d376e86d4b5d115" +checksum = "83ded5277c882211a7271e285863bfec54715eafd9b2b4fd7421635310c9d3e4" dependencies = [ "indexmap", "num_cpus", @@ -3613,9 +3613,9 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.57.4" +version = "0.56.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2724dfceadeafd4f9a626a5e8c057c4550cbf75991c08006aa5b11a4e5feed27" +checksum = "94c60a884be4d36a516da1d1d3363f50c8a51ef78d3f9423916c814036fdfdd8" dependencies = [ "anyhow", "dashmap", @@ -3681,9 +3681,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.104.1" +version = "0.103.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86c58e6dfbcc59185e9c557d952f431c5140ed546cfebc053ad0b082c4a3e4e4" +checksum = "31d9c254a600f964ee5f6d69d655d5f6f2296d33b6bff153f4ea72b07a305b7f" dependencies = [ "anyhow", "enumset", diff --git a/bindings/binding_core_node/Cargo.toml b/bindings/binding_core_node/Cargo.toml index 52439db4e597..867eefb13b60 100644 --- a/bindings/binding_core_node/Cargo.toml +++ b/bindings/binding_core_node/Cargo.toml @@ -51,7 +51,7 @@ tracing-chrome = "0.5.0" tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } -swc_core = { version = "0.85.4", features = [ +swc_core = { version = "0.84.0", features = [ "allocator_node", "ecma_ast", "ecma_codegen", diff --git a/bindings/binding_core_wasm/Cargo.toml b/bindings/binding_core_wasm/Cargo.toml index f627eb77339c..69e14d55cc6c 100644 --- a/bindings/binding_core_wasm/Cargo.toml +++ b/bindings/binding_core_wasm/Cargo.toml @@ -35,7 +35,7 @@ anyhow = "1.0.66" getrandom = { version = "0.2.10", features = ["js"] } serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.85.4", features = [ +swc_core = { version = "0.84.0", features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", diff --git a/bindings/binding_minifier_node/Cargo.toml b/bindings/binding_minifier_node/Cargo.toml index cd60f3f8ce83..c824dcd2b7de 100644 --- a/bindings/binding_minifier_node/Cargo.toml +++ b/bindings/binding_minifier_node/Cargo.toml @@ -35,9 +35,9 @@ tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } sourcemap = "6.0.0" -swc_compiler_base = { version = "0.2.5", features = ["node"] } +swc_compiler_base = { version = "0.2.0", features = ["node"] } swc_config = "0.1.7" -swc_core = { version = "0.85.4", features = [ +swc_core = { version = "0.84.0", features = [ "allocator_node", "common_concurrent", "common_sourcemap", diff --git a/bindings/binding_minifier_wasm/Cargo.toml b/bindings/binding_minifier_wasm/Cargo.toml index 71cbc042ce9d..02c6e88edf46 100644 --- a/bindings/binding_minifier_wasm/Cargo.toml +++ b/bindings/binding_minifier_wasm/Cargo.toml @@ -35,7 +35,7 @@ anyhow = "1.0.66" getrandom = { version = "0.2.10", features = ["js"] } serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.85.4", features = [ +swc_core = { version = "0.84.0", features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", diff --git a/bindings/swc_cli/Cargo.toml b/bindings/swc_cli/Cargo.toml index 43a6f52782de..6fefd99d783e 100644 --- a/bindings/swc_cli/Cargo.toml +++ b/bindings/swc_cli/Cargo.toml @@ -23,5 +23,5 @@ plugin = [ [dependencies] anyhow = "1.0.66" -swc_cli_impl = "0.3.4" +swc_cli_impl = "0.2.0" diff --git a/packages/minifier/package.json b/packages/minifier/package.json index cbff3010e941..869ee15c50c2 100644 --- a/packages/minifier/package.json +++ b/packages/minifier/package.json @@ -1,6 +1,6 @@ { "name": "@swc/minifier", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "description": "Super-fast alternative for terser", "homepage": "https://swc.rs", "main": "./index.js", diff --git a/packages/minifier/scripts/npm/darwin-arm64/package.json b/packages/minifier/scripts/npm/darwin-arm64/package.json index e56081f22aba..cdbf2ae5acce 100644 --- a/packages/minifier/scripts/npm/darwin-arm64/package.json +++ b/packages/minifier/scripts/npm/darwin-arm64/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-darwin-arm64", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.darwin-arm64.node", - "files": [ - "minifier.darwin-arm64.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-darwin-arm64", + "version": "1.2.130", + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.darwin-arm64.node", + "files": [ + "minifier.darwin-arm64.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/darwin-x64/package.json b/packages/minifier/scripts/npm/darwin-x64/package.json index aa3b3e6940e0..0984c4d57e9f 100644 --- a/packages/minifier/scripts/npm/darwin-x64/package.json +++ b/packages/minifier/scripts/npm/darwin-x64/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-darwin-x64", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "darwin" - ], - "cpu": [ - "x64" - ], - "main": "minifier.darwin-x64.node", - "files": [ - "minifier.darwin-x64.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-darwin-x64", + "version": "1.2.130", + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ], + "main": "minifier.darwin-x64.node", + "files": [ + "minifier.darwin-x64.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json b/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json index b0631a659b63..71dbd52359d4 100644 --- a/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json +++ b/packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-linux-arm-gnueabihf", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "linux" - ], - "cpu": [ - "arm" - ], - "main": "minifier.linux-arm-gnueabihf.node", - "files": [ - "minifier.linux-arm-gnueabihf.node", - "swc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-linux-arm-gnueabihf", + "version": "1.2.130", + "os": [ + "linux" + ], + "cpu": [ + "arm" + ], + "main": "minifier.linux-arm-gnueabihf.node", + "files": [ + "minifier.linux-arm-gnueabihf.node", + "swc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/linux-arm64-gnu/package.json b/packages/minifier/scripts/npm/linux-arm64-gnu/package.json index 2784fe2e5cd0..bc1aceb51b39 100644 --- a/packages/minifier/scripts/npm/linux-arm64-gnu/package.json +++ b/packages/minifier/scripts/npm/linux-arm64-gnu/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-arm64-gnu", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.linux-arm64-gnu.node", - "files": [ - "minifier.linux-arm64-gnu.node", - "swc" - ], - "libc": [ - "glibc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-linux-arm64-gnu", + "version": "1.2.130", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.linux-arm64-gnu.node", + "files": [ + "minifier.linux-arm64-gnu.node", + "swc" + ], + "libc": [ + "glibc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/linux-arm64-musl/package.json b/packages/minifier/scripts/npm/linux-arm64-musl/package.json index 5b5a63f985c9..bf01d3be27f8 100644 --- a/packages/minifier/scripts/npm/linux-arm64-musl/package.json +++ b/packages/minifier/scripts/npm/linux-arm64-musl/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-arm64-musl", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.linux-arm64-musl.node", - "files": [ - "minifier.linux-arm64-musl.node", - "swc" - ], - "libc": [ - "musl" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-linux-arm64-musl", + "version": "1.2.130", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.linux-arm64-musl.node", + "files": [ + "minifier.linux-arm64-musl.node", + "swc" + ], + "libc": [ + "musl" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/linux-x64-gnu/package.json b/packages/minifier/scripts/npm/linux-x64-gnu/package.json index 832e35b0b87c..cd447151af39 100644 --- a/packages/minifier/scripts/npm/linux-x64-gnu/package.json +++ b/packages/minifier/scripts/npm/linux-x64-gnu/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-x64-gnu", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "minifier.linux-x64-gnu.node", - "files": [ - "minifier.linux-x64-gnu.node", - "swc" - ], - "libc": [ - "glibc" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-linux-x64-gnu", + "version": "1.2.130", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "main": "minifier.linux-x64-gnu.node", + "files": [ + "minifier.linux-x64-gnu.node", + "swc" + ], + "libc": [ + "glibc" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/linux-x64-musl/package.json b/packages/minifier/scripts/npm/linux-x64-musl/package.json index f77a9e6251fb..b2cdbbd2954b 100644 --- a/packages/minifier/scripts/npm/linux-x64-musl/package.json +++ b/packages/minifier/scripts/npm/linux-x64-musl/package.json @@ -1,45 +1,45 @@ { - "name": "@swc/minifier-linux-x64-musl", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "minifier.linux-x64-musl.node", - "files": [ - "minifier.linux-x64-musl.node", - "swc" - ], - "libc": [ - "musl" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-linux-x64-musl", + "version": "1.2.130", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "main": "minifier.linux-x64-musl.node", + "files": [ + "minifier.linux-x64-musl.node", + "swc" + ], + "libc": [ + "musl" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/win32-arm64-msvc/package.json b/packages/minifier/scripts/npm/win32-arm64-msvc/package.json index 7551ff096a92..aac96df38cde 100644 --- a/packages/minifier/scripts/npm/win32-arm64-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-arm64-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-arm64-msvc", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "win32" - ], - "cpu": [ - "arm64" - ], - "main": "minifier.win32-arm64-msvc.node", - "files": [ - "minifier.win32-arm64-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-win32-arm64-msvc", + "version": "1.2.130", + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ], + "main": "minifier.win32-arm64-msvc.node", + "files": [ + "minifier.win32-arm64-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/win32-ia32-msvc/package.json b/packages/minifier/scripts/npm/win32-ia32-msvc/package.json index 0a18bfc558de..62635f5a9d58 100644 --- a/packages/minifier/scripts/npm/win32-ia32-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-ia32-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-ia32-msvc", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "win32" - ], - "cpu": [ - "ia32" - ], - "main": "minifier.win32-ia32-msvc.node", - "files": [ - "minifier.win32-ia32-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-win32-ia32-msvc", + "version": "1.2.130", + "os": [ + "win32" + ], + "cpu": [ + "ia32" + ], + "main": "minifier.win32-ia32-msvc.node", + "files": [ + "minifier.win32-ia32-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/packages/minifier/scripts/npm/win32-x64-msvc/package.json b/packages/minifier/scripts/npm/win32-x64-msvc/package.json index a418ef3c430a..f431731e2695 100644 --- a/packages/minifier/scripts/npm/win32-x64-msvc/package.json +++ b/packages/minifier/scripts/npm/win32-x64-msvc/package.json @@ -1,42 +1,42 @@ { - "name": "@swc/minifier-win32-x64-msvc", - "version": "1.3.93-nightly.20231011.1", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "main": "minifier.win32-x64-msvc.node", - "files": [ - "minifier.win32-x64-msvc.node", - "swc.exe" - ], - "description": "Super-fast alternative for babel", - "keywords": [ - "swc", - "swcpack", - "babel", - "typescript", - "rust", - "webpack", - "tsc" - ], - "author": "강동윤 ", - "homepage": "https://swc.rs", - "license": "Apache-2.0 AND MIT", - "engines": { - "node": ">=10" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org/", - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/swc-project/swc.git" - }, - "bugs": { - "url": "https://github.com/swc-project/swc/issues" - } -} \ No newline at end of file + "name": "@swc/minifier-win32-x64-msvc", + "version": "1.2.130", + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], + "main": "minifier.win32-x64-msvc.node", + "files": [ + "minifier.win32-x64-msvc.node", + "swc.exe" + ], + "description": "Super-fast alternative for babel", + "keywords": [ + "swc", + "swcpack", + "babel", + "typescript", + "rust", + "webpack", + "tsc" + ], + "author": "강동윤 ", + "homepage": "https://swc.rs", + "license": "Apache-2.0 AND MIT", + "engines": { + "node": ">=10" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/swc-project/swc.git" + }, + "bugs": { + "url": "https://github.com/swc-project/swc/issues" + } +} diff --git a/scripts/npm/darwin-arm64/package.json b/scripts/npm/darwin-arm64/package.json index 06096c109747..e7161de87fc3 100644 --- a/scripts/npm/darwin-arm64/package.json +++ b/scripts/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-darwin-arm64", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "darwin" ], diff --git a/scripts/npm/darwin-x64/package.json b/scripts/npm/darwin-x64/package.json index 547a1a0b965f..cf19812129c6 100644 --- a/scripts/npm/darwin-x64/package.json +++ b/scripts/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-darwin-x64", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "darwin" ], diff --git a/scripts/npm/linux-arm-gnueabihf/package.json b/scripts/npm/linux-arm-gnueabihf/package.json index 3bf21bee34ab..68558c8994c3 100644 --- a/scripts/npm/linux-arm-gnueabihf/package.json +++ b/scripts/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm-gnueabihf", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "linux" ], diff --git a/scripts/npm/linux-arm64-gnu/package.json b/scripts/npm/linux-arm64-gnu/package.json index 5c450315d66a..25fba6d78911 100644 --- a/scripts/npm/linux-arm64-gnu/package.json +++ b/scripts/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm64-gnu", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "linux" ], diff --git a/scripts/npm/linux-arm64-musl/package.json b/scripts/npm/linux-arm64-musl/package.json index b4ccfd94b084..00d929774742 100644 --- a/scripts/npm/linux-arm64-musl/package.json +++ b/scripts/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-arm64-musl", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "linux" ], diff --git a/scripts/npm/linux-x64-gnu/package.json b/scripts/npm/linux-x64-gnu/package.json index 46c544ecfd5d..616bc00eeba2 100644 --- a/scripts/npm/linux-x64-gnu/package.json +++ b/scripts/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-x64-gnu", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "linux" ], diff --git a/scripts/npm/linux-x64-musl/package.json b/scripts/npm/linux-x64-musl/package.json index 306d9aa4a01d..d9c605a8765b 100644 --- a/scripts/npm/linux-x64-musl/package.json +++ b/scripts/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-linux-x64-musl", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "linux" ], diff --git a/scripts/npm/win32-arm64-msvc/package.json b/scripts/npm/win32-arm64-msvc/package.json index c2446c45ec2d..412e6588245c 100644 --- a/scripts/npm/win32-arm64-msvc/package.json +++ b/scripts/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-arm64-msvc", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "win32" ], diff --git a/scripts/npm/win32-ia32-msvc/package.json b/scripts/npm/win32-ia32-msvc/package.json index 4fef0c17ea13..3cdf37b3af41 100644 --- a/scripts/npm/win32-ia32-msvc/package.json +++ b/scripts/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-ia32-msvc", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "win32" ], diff --git a/scripts/npm/win32-x64-msvc/package.json b/scripts/npm/win32-x64-msvc/package.json index 9fd79fbe2167..ea3540f0ef8e 100644 --- a/scripts/npm/win32-x64-msvc/package.json +++ b/scripts/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core-win32-x64-msvc", - "version": "1.3.93-nightly.20231011.1", + "version": "1.3.92", "os": [ "win32" ], From 70d20ab6e1e0aa125e3f207220530a71fd1e9847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:40:30 +0900 Subject: [PATCH 24/28] CI --- .github/workflows/publish-bot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/publish-bot.yml diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml new file mode 100644 index 000000000000..c9937c694849 --- /dev/null +++ b/.github/workflows/publish-bot.yml @@ -0,0 +1,12 @@ +name: "Publish (auto)" + +on: + workflow_dispatch: + pull_request: + types: ["opened", "reopened", "synchronize"] + +jobs: + publish-nightly: + runs-on: ubuntu-latest + steps: + - run: cargo xtask npm nightly From 5a838f93089a7366def6ca6670dbe9d53dd11039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:41:35 +0900 Subject: [PATCH 25/28] env --- .github/workflows/publish-bot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index c9937c694849..5939790c2940 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -1,5 +1,9 @@ name: "Publish (auto)" +env: + GIT_COMMITTER_NAME: "SWC Bot" + GIT_COMMITTER_EMAIL: "bot@swc.rs" + on: workflow_dispatch: pull_request: From 7acbbbdbd938ed5e68f35b70fe6e0c82e86a4b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:46:09 +0900 Subject: [PATCH 26/28] hmm --- .github/workflows/publish-bot.yml | 23 ++++++++++++++++++++++- xtask/src/npm/nightly.rs | 27 ++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index 5939790c2940..bc0c9486ff1a 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -1,6 +1,8 @@ name: "Publish (auto)" env: + GIT_AUTHOR_NAME: "SWC Bot" + GIT_AUTHOR_EMAIL: "bot@swc.rs" GIT_COMMITTER_NAME: "SWC Bot" GIT_COMMITTER_EMAIL: "bot@swc.rs" @@ -13,4 +15,23 @@ jobs: publish-nightly: runs-on: ubuntu-latest steps: - - run: cargo xtask npm nightly + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + + - run: cargo xtask npm nightly --git + + - name: Create commit + run: | + git add -A + git commit --no-verify -m 'chore: Publish nightly' + + - uses: webfactory/ssh-agent@v0.5.4 + with: + ssh-private-key: ${{ secrets.SWC_BOT_SSH }} + + # Push back, using ssh + - name: Push back + run: | + git push git@github.com:swc-project/swc.git --no-verify + git push git@github.com:swc-project/swc.git --no-verify --tags diff --git a/xtask/src/npm/nightly.rs b/xtask/src/npm/nightly.rs index b5c267ac6511..b8455379fd7f 100644 --- a/xtask/src/npm/nightly.rs +++ b/xtask/src/npm/nightly.rs @@ -11,7 +11,9 @@ use crate::{ }; #[derive(Debug, Args)] -pub(super) struct NightlyCmd {} +pub(super) struct NightlyCmd { + git: bool, +} impl NightlyCmd { pub fn run(self) -> Result<()> { @@ -33,6 +35,29 @@ impl NightlyCmd { set_version(&version).context("failed to set version")?; bump_swc_cli().context("failed to bump swc-cli")?; + if self.git { + // git add -A + Command::new("git") + .current_dir(repository_root()?) + .arg("add") + .arg("-A") + .stderr(Stdio::inherit()) + .status() + .context("git add failed")?; + + // git commit --no-verify -m 'chore: Publish nightly' + + Command::new("git") + .current_dir(repository_root()?) + .arg("commit") + .arg("--no-verify") + .arg("-m") + .arg("chore: Publish nightly") + .stderr(Stdio::inherit()) + .status() + .context("git commit failed")?; + } + Ok(()) }) .context("failed to publish nightly version") From b3f392a852d60268566c95ae6efb70624d79fd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:46:20 +0900 Subject: [PATCH 27/28] remove useless --- .github/workflows/publish-bot.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index bc0c9486ff1a..fadd24082452 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -21,11 +21,6 @@ jobs: - run: cargo xtask npm nightly --git - - name: Create commit - run: | - git add -A - git commit --no-verify -m 'chore: Publish nightly' - - uses: webfactory/ssh-agent@v0.5.4 with: ssh-private-key: ${{ secrets.SWC_BOT_SSH }} From 04e3e206769e00b723516f6febb0f939eb545350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 12 Oct 2023 07:47:09 +0900 Subject: [PATCH 28/28] move script --- .github/workflows/publish-bot.yml | 32 ------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/publish-bot.yml diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml deleted file mode 100644 index fadd24082452..000000000000 --- a/.github/workflows/publish-bot.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: "Publish (auto)" - -env: - GIT_AUTHOR_NAME: "SWC Bot" - GIT_AUTHOR_EMAIL: "bot@swc.rs" - GIT_COMMITTER_NAME: "SWC Bot" - GIT_COMMITTER_EMAIL: "bot@swc.rs" - -on: - workflow_dispatch: - pull_request: - types: ["opened", "reopened", "synchronize"] - -jobs: - publish-nightly: - runs-on: ubuntu-latest - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - - - run: cargo xtask npm nightly --git - - - uses: webfactory/ssh-agent@v0.5.4 - with: - ssh-private-key: ${{ secrets.SWC_BOT_SSH }} - - # Push back, using ssh - - name: Push back - run: | - git push git@github.com:swc-project/swc.git --no-verify - git push git@github.com:swc-project/swc.git --no-verify --tags