From 3458e9f1d3eac7c47ba00a5768d3f8f41c8037ef Mon Sep 17 00:00:00 2001 From: Donny Date: Wed, 5 Jan 2022 14:45:02 +0900 Subject: [PATCH] chore(ci): Fix publish scripts --- .github/workflows/publish-node.yml | 6 +++--- crates/node/Cargo.toml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-node.yml b/.github/workflows/publish-node.yml index 1b5f98293cc..e19ddb722ca 100644 --- a/.github/workflows/publish-node.yml +++ b/.github/workflows/publish-node.yml @@ -92,7 +92,7 @@ jobs: build: | cargo build -p swc_cli --release --target=armv7-unknown-linux-gnueabihf cp ./target/armv7-unknown-linux-gnueabihf/release/swc . - yarn build --target=armv7-unknown-linux-gnueabihf + yarn build --target=armv7-unknown-linux-gnueabihf --no-default-features --features swc_v1 arm-linux-gnueabihf-strip swc.linux-arm-gnueabihf.node - host: ubuntu-latest target: aarch64-linux-android @@ -114,7 +114,7 @@ jobs: export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}" cargo build -p swc_cli --release --target armv7-linux-androideabi cp ./target/armv7-linux-androideabi/release/swc . - yarn build --target armv7-linux-androideabi + yarn build --target armv7-linux-androideabi --no-default-features --features swc_v1 ${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip *.node - host: ubuntu-latest target: aarch64-unknown-linux-musl @@ -129,7 +129,7 @@ jobs: - host: windows-latest target: aarch64-pc-windows-msvc build: | - cargo build -p swc_cli --release --target aarch64-pc-windows-msvc + cargo build -p swc_cli --release --target aarch64-pc-windows-msvc --no-default-features --features swc_v1 cp target/aarch64-pc-windows-msvc/release/swc.exe . yarn build --target aarch64-pc-windows-msvc name: stable - ${{ matrix.settings.target }} - node@14 diff --git a/crates/node/Cargo.toml b/crates/node/Cargo.toml index 7335540f6a7..633efe314a4 100644 --- a/crates/node/Cargo.toml +++ b/crates/node/Cargo.toml @@ -12,7 +12,8 @@ version = "0.1.0" crate-type = ["cdylib"] [features] -default = ["swc_v1"] +default = ["swc_v1", "plugin"] +plugin = ["swc/plugin"] swc_v1 = ["swc_node_bundler/swc_v1", "swc/wrong-target"] swc_v2 = ["swc_node_bundler/swc_v2"] @@ -28,7 +29,7 @@ node_macro_deps = {path = "../node_macro_deps"} path-clean = "0.1" serde = {version = "1", features = ["derive"]} serde_json = {version = "1", features = ["unbounded_depth"]} -swc = {path = "../swc", features = ["concurrent", "plugin", "node"]} +swc = {path = "../swc", features = ["concurrent", "node"]} swc_atoms = {version = "0.2.4", path = "../swc_atoms"} swc_bundler = {path = "../swc_bundler"} swc_common = {path = "../swc_common", features = ["sourcemap"]}