mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
chore(ci): Merge CI scripts (#5999)
**Description:** This PR merges CI scripts, and make integration tests use patched crates. **Related issue:** - Closes https://github.com/swc-project/swc/issues/5540.
This commit is contained in:
parent
2f626e95eb
commit
10fb645552
@ -1,29 +1,90 @@
|
||||
name: Cargo
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
#on:
|
||||
# push:
|
||||
# # Ignore commits created by bors
|
||||
# branches-ignore:
|
||||
# - 'staging'
|
||||
# - 'trying'
|
||||
# pull_request:
|
||||
# branches-ignore:
|
||||
# - 'staging'
|
||||
# - 'trying'
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
env:
|
||||
CI: 1
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUST_LOG: "debug"
|
||||
CARGO_TERM_COLOR: "always"
|
||||
DIFF: 0
|
||||
# For faster CI
|
||||
RUST_LOG: "off"
|
||||
# https://github.com/swc-project/swc/pull/3742
|
||||
RUST_MIN_STACK: 4194304
|
||||
CI: 1
|
||||
CARGO_TERM_COLOR: "always"
|
||||
|
||||
jobs:
|
||||
check-license:
|
||||
name: Check license
|
||||
cargo-fmt:
|
||||
name: Cargo fmt
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUST_LOG: "0"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
components: rustfmt
|
||||
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
cargo-clippy:
|
||||
name: Cargo clippy
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
components: clippy
|
||||
|
||||
- run: cargo clippy --all
|
||||
|
||||
cargo-crev:
|
||||
name: Cargo crev
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Remove unrelated
|
||||
run: |
|
||||
rm -rf packages
|
||||
rm -rf tests
|
||||
ls -al
|
||||
|
||||
- name: Install cargo-crev
|
||||
uses: baptiste0928/cargo-install@v1.1.0
|
||||
with:
|
||||
crate: cargo-crev
|
||||
version: "0.23.1"
|
||||
|
||||
- name: Configure cargo-crev
|
||||
run: |
|
||||
git config --global user.name 'SWC bot'
|
||||
git config --global user.email 'bot@swc.rs'
|
||||
|
||||
cargo crev trust --level high https://github.com/kdy1/crev-proofs
|
||||
cargo crev repo fetch all
|
||||
|
||||
- name: Check dependencies
|
||||
run: |
|
||||
./scripts/crev/verify.sh
|
||||
|
||||
cargo-deny:
|
||||
name: Check license of dependencies
|
||||
runs-on: ubuntu-latest
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
@ -45,7 +106,7 @@ jobs:
|
||||
run: |
|
||||
cargo deny check
|
||||
|
||||
check:
|
||||
cargo-check:
|
||||
name: Check
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: >-
|
||||
@ -84,7 +145,43 @@ jobs:
|
||||
# Ensure that all components are compilable.
|
||||
- name: Run cargo check for all targets
|
||||
run: cargo check --all --all-targets
|
||||
test:
|
||||
|
||||
test-wasm:
|
||||
name: Test wasm
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install node dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
yarn
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
(cd bindings/binding_core_wasm && yarn)
|
||||
(cd bindings/binding_core_wasm && ./scripts/build.sh --features plugin)
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
(cd bindings/binding_core_wasm && ./scripts/test.sh)
|
||||
|
||||
cargo-test:
|
||||
name: Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }}
|
||||
runs-on: ${{ matrix.settings.runner }}
|
||||
if: >-
|
||||
@ -582,3 +679,154 @@ jobs:
|
||||
if: matrix.settings.check
|
||||
working-directory: "crates/${{ matrix.settings.crate }}"
|
||||
run: "${{ matrix.settings.check }}"
|
||||
|
||||
node-test:
|
||||
name: Test node bindings - ${{ matrix.os }}
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
- macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
|
||||
- name: Patch
|
||||
run: |
|
||||
echo '[patch.crates-io]' >> bindings/Cargo.toml
|
||||
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/
|
||||
**/target/
|
||||
key: ${{ runner.os }}-node-api-test
|
||||
|
||||
- name: Set platform name
|
||||
run: |
|
||||
export NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")
|
||||
echo "PLATFORM_NAME=$NODE_PLATFORM_NAME" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
rustup target add wasm32-wasi
|
||||
yarn
|
||||
|
||||
yarn build:dev
|
||||
yarn test
|
||||
|
||||
integration-test:
|
||||
name: "Test with @swc/cli"
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
cache: "yarn"
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/
|
||||
**/target/
|
||||
key: ${{ runner.os }}-cargo-integration
|
||||
|
||||
- name: Set platform name
|
||||
run: |
|
||||
export NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")
|
||||
echo "PLATFORM_NAME=$NODE_PLATFORM_NAME" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- name: Patch
|
||||
run: |
|
||||
echo '[patch.crates-io]' >> bindings/Cargo.toml
|
||||
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
rustup target add wasm32-wasi
|
||||
yarn
|
||||
|
||||
yarn build:dev
|
||||
|
||||
# Avoid no space left on device, copyfile
|
||||
cargo clean
|
||||
cargo clean --manifest-path ./bindings/binding_core_node/Cargo.toml
|
||||
cargo clean --manifest-path ./bindings/binding_core_wasm/Cargo.toml
|
||||
cargo clean --manifest-path ./bindings/swc_cli/Cargo.toml
|
||||
|
||||
yarn global add @swc/cli@0.1.56
|
||||
yarn link
|
||||
yarn global add file:$PWD
|
||||
|
||||
- name: Print info
|
||||
run: |
|
||||
yarn global list
|
||||
|
||||
- name: (swc) three.js
|
||||
run: |
|
||||
mkdir -p tests/integration/three-js
|
||||
yarn global add qunit failonlyreporter
|
||||
|
||||
# Download three.js
|
||||
git clone --depth 1 https://github.com/mrdoob/three.js.git -b r117 tests/integration/three-js/repo
|
||||
|
||||
# TODO
|
||||
# swc -C isModule=unknown -C test=\".*.js$\" -C module.type=commonjs --sync tests/integration/three-js/repo/ -d tests/integration/three-js/build/
|
||||
|
||||
# TODO
|
||||
# (cd tests/integration/three-js/build/test && qunit -r failonlyreporter unit/three.source.unit.js)
|
||||
|
||||
# terser: contains with statement in test
|
||||
# Rome.js: I forgot the cause, but it didn't work.
|
||||
# jQuery: browser only (window.document is required)
|
||||
- name: (swc) redux
|
||||
run: |
|
||||
mkdir -p tests/integration/redux
|
||||
yarn global add qunit failonlyreporter
|
||||
|
||||
# Download
|
||||
# git clone --depth 1 https://github.com/reduxjs/redux.git -b v4.1.0 tests/integration/redux/repo
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/src/ -d tests/integration/redux/repo/lib/
|
||||
# echo "module.exports=require('./index')" > tests/integration/redux/repo/lib/redux.js
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/src/ -d tests/integration/redux/repo/test/
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/test/ -d tests/integration/redux/repo/test/
|
||||
|
||||
# TODO
|
||||
# (cd tests/integration/redux/repo && yarn)
|
||||
# TODO
|
||||
# (cd tests/integration/redux/repo && npx jest '.*.js' --modulePathIgnorePatterns 'typescript')
|
||||
- name: (swcpack) example react app
|
||||
run: |
|
||||
(cd crates/swc_node_bundler/tests/integration/react && yarn && npx spack)
|
2
.github/workflows/cancel.yml
vendored
2
.github/workflows/cancel.yml
vendored
@ -13,5 +13,5 @@ jobs:
|
||||
steps:
|
||||
- uses: styfle/cancel-workflow-action@0.9.1
|
||||
with:
|
||||
workflow_id: 120748, 1407871, 2022092, 8653985
|
||||
workflow_id: 120748, 1407871, 2022092, 8653985, 36194918
|
||||
access_token: ${{ github.token }}
|
||||
|
53
.github/workflows/cargo-lints.yml
vendored
53
.github/workflows/cargo-lints.yml
vendored
@ -1,53 +0,0 @@
|
||||
name: Cargo lint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
|
||||
jobs:
|
||||
fmt:
|
||||
name: fmt
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUST_LOG: "0"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
components: rustfmt
|
||||
|
||||
- name: Run cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
components: clippy
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install node dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
yarn
|
||||
|
||||
- name: Check
|
||||
run: |
|
||||
cargo clippy --all
|
39
.github/workflows/crev.yml
vendored
39
.github/workflows/crev.yml
vendored
@ -1,39 +0,0 @@
|
||||
name: "crev: Dependencies"
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
check-deps:
|
||||
name: Check dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Remove unrelated
|
||||
run: |
|
||||
rm -rf packages
|
||||
rm -rf tests
|
||||
ls -al
|
||||
|
||||
- name: Install cargo-crev
|
||||
uses: baptiste0928/cargo-install@v1.1.0
|
||||
with:
|
||||
crate: cargo-crev
|
||||
version: "0.23.1"
|
||||
|
||||
- name: Configure cargo-crev
|
||||
run: |
|
||||
git config --global user.name 'SWC bot'
|
||||
git config --global user.email 'bot@swc.rs'
|
||||
|
||||
cargo crev trust --level high https://github.com/kdy1/crev-proofs
|
||||
cargo crev repo fetch all
|
||||
|
||||
- name: Check dependencies
|
||||
run: |
|
||||
./scripts/crev/verify.sh
|
42
.github/workflows/docs.yml
vendored
42
.github/workflows/docs.yml
vendored
@ -1,42 +0,0 @@
|
||||
name: Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
rustdoc:
|
||||
name: Rustdoc
|
||||
concurrency: swc-docs-rustdoc
|
||||
runs-on: macos-latest
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Create rustdoc
|
||||
run: cargo doc --all --features plugin_transform --features ecma_loader --features ecma_utils --features ecma_quote --features ecma_visit --features ecma_transforms --features __testing_transform
|
||||
|
||||
- name: Create CNAME
|
||||
run: |
|
||||
echo 'rustdoc.swc.rs' > target/doc/CNAME
|
||||
|
||||
- name: Deploy
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.8
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
branch: gh-pages
|
||||
folder: target/doc
|
||||
clean: true
|
||||
git-config-email: github-bot@swc.rs
|
||||
repository-name: swc-project/rustdoc
|
||||
commit-message: "Update"
|
||||
single-commit: true
|
149
.github/workflows/integration.yml
vendored
149
.github/workflows/integration.yml
vendored
@ -1,149 +0,0 @@
|
||||
name: Integration tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_TERM_COLOR: "always"
|
||||
|
||||
jobs:
|
||||
publish-test:
|
||||
name: node-api - ${{ matrix.os }}
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
- macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/
|
||||
**/target/
|
||||
key: ${{ runner.os }}-node-api-test
|
||||
|
||||
- name: Set platform name
|
||||
run: |
|
||||
export NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")
|
||||
echo "PLATFORM_NAME=$NODE_PLATFORM_NAME" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
rustup target add wasm32-wasi
|
||||
yarn
|
||||
|
||||
yarn build:dev
|
||||
yarn test
|
||||
|
||||
integration-test:
|
||||
name: swc-cli
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
cache: "yarn"
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/
|
||||
**/target/
|
||||
key: ${{ runner.os }}-cargo-integration
|
||||
|
||||
- name: Set platform name
|
||||
run: |
|
||||
export NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")
|
||||
echo "PLATFORM_NAME=$NODE_PLATFORM_NAME" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
rustup target add wasm32-wasi
|
||||
yarn
|
||||
|
||||
yarn build:dev
|
||||
|
||||
# Avoid no space left on device, copyfile
|
||||
cargo clean
|
||||
cargo clean --manifest-path ./bindings/binding_core_node/Cargo.toml
|
||||
cargo clean --manifest-path ./bindings/binding_core_wasm/Cargo.toml
|
||||
cargo clean --manifest-path ./bindings/swc_cli/Cargo.toml
|
||||
|
||||
yarn global add @swc/cli@0.1.56
|
||||
yarn link
|
||||
yarn global add file:$PWD
|
||||
|
||||
- name: Print info
|
||||
run: |
|
||||
yarn global list
|
||||
|
||||
- name: (swc) three.js
|
||||
run: |
|
||||
mkdir -p tests/integration/three-js
|
||||
yarn global add qunit failonlyreporter
|
||||
|
||||
# Download three.js
|
||||
git clone --depth 1 https://github.com/mrdoob/three.js.git -b r117 tests/integration/three-js/repo
|
||||
|
||||
# TODO
|
||||
# swc -C isModule=unknown -C test=\".*.js$\" -C module.type=commonjs --sync tests/integration/three-js/repo/ -d tests/integration/three-js/build/
|
||||
|
||||
# TODO
|
||||
# (cd tests/integration/three-js/build/test && qunit -r failonlyreporter unit/three.source.unit.js)
|
||||
|
||||
# terser: contains with statement in test
|
||||
# Rome.js: I forgot the cause, but it didn't work.
|
||||
# jQuery: browser only (window.document is required)
|
||||
- name: (swc) redux
|
||||
run: |
|
||||
mkdir -p tests/integration/redux
|
||||
yarn global add qunit failonlyreporter
|
||||
|
||||
# Download
|
||||
# git clone --depth 1 https://github.com/reduxjs/redux.git -b v4.1.0 tests/integration/redux/repo
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/src/ -d tests/integration/redux/repo/lib/
|
||||
# echo "module.exports=require('./index')" > tests/integration/redux/repo/lib/redux.js
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/src/ -d tests/integration/redux/repo/test/
|
||||
# TODO
|
||||
# swc --sync tests/integration/redux/repo/test/ -d tests/integration/redux/repo/test/
|
||||
|
||||
# TODO
|
||||
# (cd tests/integration/redux/repo && yarn)
|
||||
# TODO
|
||||
# (cd tests/integration/redux/repo && npx jest '.*.js' --modulePathIgnorePatterns 'typescript')
|
||||
- name: (swcpack) example react app
|
||||
run: |
|
||||
(cd crates/swc_node_bundler/tests/integration/react && yarn && npx spack)
|
54
.github/workflows/wasm.yml
vendored
54
.github/workflows/wasm.yml
vendored
@ -1,54 +0,0 @@
|
||||
name: Wasm
|
||||
|
||||
on: [push, pull_request]
|
||||
#on:
|
||||
# push:
|
||||
# # Ignore commits created by bors
|
||||
# branches-ignore:
|
||||
# - 'staging'
|
||||
# - 'trying'
|
||||
# pull_request:
|
||||
# branches-ignore:
|
||||
# - 'staging'
|
||||
# - 'trying'
|
||||
|
||||
env:
|
||||
CI: 1
|
||||
CARGO_INCREMENTAL: 0
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
if: >-
|
||||
${{ !contains(github.event.head_commit.message, 'chore: ') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# We explicitly do this to cache properly.
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install node dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
yarn
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
(cd bindings/binding_core_wasm && yarn)
|
||||
(cd bindings/binding_core_wasm && ./scripts/build.sh --features plugin)
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
(cd bindings/binding_core_wasm && ./scripts/test.sh)
|
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -2627,9 +2627,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.145"
|
||||
version = "1.0.140"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b"
|
||||
checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
@ -2666,9 +2666,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.145"
|
||||
version = "1.0.140"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c"
|
||||
checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
@ -41,6 +41,3 @@ opt-level = 3
|
||||
|
||||
[profile.test.package.pretty_assertions]
|
||||
opt-level = 3
|
||||
|
||||
[workspace.dependencies]
|
||||
serde = "1.0.145"
|
@ -16,7 +16,3 @@ strip = "symbols"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
debug-assertions = false
|
||||
|
||||
[workspace.dependencies]
|
||||
swc_core = "0.28.10"
|
||||
serde = "1.0.145"
|
@ -49,14 +49,14 @@ napi-derive = { version = "2", default-features = false, features = [
|
||||
] }
|
||||
node_macro_deps = { path = "../node_macro_deps" }
|
||||
path-clean = "0.1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = { version = "1", features = ["unbounded_depth"] }
|
||||
tracing = { version = "0.1.32", features = ["release_max_level_info"] }
|
||||
tracing-chrome = "0.5.0"
|
||||
tracing-futures = "0.2.5"
|
||||
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
|
||||
|
||||
swc_core = { workspace = true, features = [
|
||||
swc_core = { version = "0.28.10", features = [
|
||||
"ecma_ast",
|
||||
"common_concurrent",
|
||||
"bundler",
|
||||
|
@ -21,7 +21,7 @@ plugin = ["swc_core/plugin_transform_host_js"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
swc_core = { workspace = true, features = [
|
||||
swc_core = { version = "0.28.10", features = [
|
||||
"common_perf",
|
||||
"binding_macro_wasm",
|
||||
] }
|
||||
|
@ -24,9 +24,9 @@ clap = { version = "3.1.0", features = ["derive", "wrap_help"] }
|
||||
glob = "0.3.0"
|
||||
rayon = "1"
|
||||
relative-path = "1.6.1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = { version = "1", features = ["unbounded_depth"] }
|
||||
swc_core = { workspace = true, features = [
|
||||
swc_core = { version = "0.28.10", features = [
|
||||
"trace_macro",
|
||||
"common_concurrent",
|
||||
"base_concurrent",
|
||||
|
@ -17,7 +17,7 @@ clap = { version = "3", features = ["derive"] }
|
||||
dialoguer = "0.10.2"
|
||||
flate2 = "1.0"
|
||||
rayon = "1.5.2"
|
||||
serde = { workspace = true }
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
sha1 = "0.10.1"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
|
@ -13,7 +13,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
nom = "7.1.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
||||
|
@ -18,6 +18,6 @@ dashmap = "5.1.0"
|
||||
from_variant = { version = "0.1.3", path = "../from_variant" }
|
||||
once_cell = "1.12.0"
|
||||
semver = { version = "1.0.4", features = ["serde"] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
st-map = "0.1.2"
|
||||
tracing = { version = "0.1.32" }
|
||||
|
@ -23,4 +23,4 @@ features = ["full", "parsing", "printing", "extra-traits"]
|
||||
version = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
serde = {workspace = true}
|
||||
serde = "1"
|
||||
|
@ -56,7 +56,7 @@ parking_lot = "0.12.0"
|
||||
pathdiff = "0.2.0"
|
||||
regex = "1"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
sourcemap = "6"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
|
@ -27,7 +27,7 @@ rkyv = { package = "rkyv", version = "=0.7.37", optional = true }
|
||||
# cannot be merged.
|
||||
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
serde = {workspace = true}
|
||||
serde = "1"
|
||||
string_cache = "0.8.4"
|
||||
triomphe = "0.1.8"
|
||||
|
||||
|
@ -18,5 +18,5 @@ anyhow = "1.0.55"
|
||||
dashmap = "5.1.0"
|
||||
once_cell = "1.10.0"
|
||||
regex = "1.5.4"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.136"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
|
@ -68,7 +68,7 @@ rkyv = { version = "=0.7.37", optional = true }
|
||||
# cannot be merged.
|
||||
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.119", features = ["derive"] }
|
||||
siphasher = "0.3.9"
|
||||
sourcemap = { version = "6", optional = true }
|
||||
string_cache = "0.8.4"
|
||||
|
@ -11,6 +11,6 @@ version = "0.1.2"
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
indexmap = "1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
swc_config_macro = { version = "0.1.0", path = "../swc_config_macro" }
|
||||
|
@ -22,7 +22,7 @@ rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv
|
||||
bytecheck = { version = "0.6.9", optional = true }
|
||||
is-macro = "0.2.0"
|
||||
rkyv = { version = "=0.7.37", optional = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -16,7 +16,7 @@ bench = false
|
||||
auto_impl = "0.5.0"
|
||||
bitflags = "1.3.2"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.127"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.114.4", path = "../swc_css_ast" }
|
||||
|
@ -16,7 +16,7 @@ bench = false
|
||||
auto_impl = "0.5.0"
|
||||
parking_lot = "0.12.0"
|
||||
rayon = "1.5.1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.14", path = "../swc_cached" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -13,7 +13,7 @@ version = "0.89.5"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.118"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.114.4", path = "../swc_css_ast" }
|
||||
|
@ -18,7 +18,7 @@ debug = []
|
||||
[dependencies]
|
||||
bitflags = "1.2.1"
|
||||
lexical = "6.1.0"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.127"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.114.4", path = "../swc_css_ast" }
|
||||
|
@ -15,7 +15,7 @@ bench = false
|
||||
[dependencies]
|
||||
once_cell = "1.10.0"
|
||||
preset_env_base = { version = "0.3.2", path = "../preset_env_base" }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -14,7 +14,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
once_cell = "1.10.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -20,7 +20,7 @@ default = ["serde"]
|
||||
path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true, optional = true }
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.114.4", path = "../swc_css_ast" }
|
||||
|
@ -40,7 +40,7 @@ rkyv = { package = "rkyv", version = "=0.7.37", optional = true }
|
||||
# cannot be merged.
|
||||
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
|
||||
scoped-tls = "1.0.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -17,7 +17,7 @@ memchr = "2.4.1"
|
||||
num-bigint = { version = "0.4", features = ["serde"] }
|
||||
once_cell = "1.10.0"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.127"
|
||||
sourcemap = "6"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -19,7 +19,7 @@ dashmap = "5.1.0"
|
||||
parking_lot = "0.12.0"
|
||||
rayon = "1.5.1"
|
||||
regex = "1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common", features = [
|
||||
"concurrent",
|
||||
|
@ -33,7 +33,7 @@ once_cell = { version = "1.9.0", optional = true }
|
||||
parking_lot = { version = "0.12.0", optional = true }
|
||||
path-clean = { version = "=0.1.0", optional = true }
|
||||
pathdiff = "0.2.1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = { version = "1.0.64", optional = true }
|
||||
swc_cached = { version = "0.3.14", optional = true, path = "../swc_cached" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -42,7 +42,7 @@ rayon = { version = "1.5.1", optional = true }
|
||||
regex = "1.5.3"
|
||||
retain_mut = "0.1.2"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.14", path = "../swc_cached" }
|
||||
|
@ -347,10 +347,20 @@ pub(crate) fn negate_cost(
|
||||
return cost(expr_ctx, last, in_bool_ctx, bin_op, is_ret_val_ignored);
|
||||
}
|
||||
|
||||
isize::from(!is_ret_val_ignored)
|
||||
if is_ret_val_ignored {
|
||||
0
|
||||
} else {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
_ => isize::from(!is_ret_val_ignored),
|
||||
_ => {
|
||||
if is_ret_val_ignored {
|
||||
0
|
||||
} else {
|
||||
1
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -162,7 +162,7 @@ impl SizeWithCtxt for Expr {
|
||||
_ => 2 + params.size(unresolved),
|
||||
};
|
||||
let a = if *is_async {
|
||||
5 + usize::from(params.len() != 1)
|
||||
5 + if params.len() == 1 { 0 } else { 1 }
|
||||
} else {
|
||||
0
|
||||
};
|
||||
|
@ -28,7 +28,7 @@ either = { version = "1.4" }
|
||||
enum_kind = { version = "0.2.1", path = "../enum_kind" }
|
||||
lexical = { version = "6.1.0", features = ["power-of-two"] }
|
||||
num-bigint = "0.4"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -19,7 +19,7 @@ indexmap = "1.6.2"
|
||||
once_cell = "1.10.0"
|
||||
preset_env_base = { version = "0.3.2", path = "../preset_env_base" }
|
||||
semver = { version = "1.0.4", features = ["serde"] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
st-map = "0.1.2"
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
|
@ -23,7 +23,7 @@ once_cell = "1.10.0"
|
||||
phf = {version = "0.10", features = ["macros"]}
|
||||
rayon = {version = "1", optional = true}
|
||||
rustc-hash = "1.1.0"
|
||||
serde = {workspace = true, features = ["derive"]}
|
||||
serde = {version = "1", features = ["derive"]}
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = {version = "0.4.18", path = "../swc_atoms"}
|
||||
swc_common = {version = "0.29.3", path = "../swc_common"}
|
||||
|
@ -27,7 +27,7 @@ is-macro = "0.2.0"
|
||||
num-bigint = "0.4"
|
||||
ordered-float = "2.0.1"
|
||||
rayon = { version = "1.5.1", optional = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -22,7 +22,7 @@ is-macro = "0.2.0"
|
||||
path-clean = "0.1.0"
|
||||
pathdiff = "0.2.0"
|
||||
regex = "1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.14", path = "../swc_cached" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -18,7 +18,7 @@ multi-module = ["swc_ecma_loader"]
|
||||
|
||||
[dependencies]
|
||||
either = "1.6.1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -23,7 +23,7 @@ indexmap = "1.6.1"
|
||||
once_cell = "1.10.0"
|
||||
rayon = { version = "1.5.1", optional = true }
|
||||
regex = "1.4.2"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
sha-1 = "0.10.0"
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
|
@ -15,7 +15,7 @@ bench = false
|
||||
ansi_term = "0.12.1"
|
||||
anyhow = "1"
|
||||
hex = "0.4.3"
|
||||
serde = {workspace = true}
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
sha-1 = "0.10"
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -13,7 +13,7 @@ version = "0.157.11"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.94.3", path = "../swc_ecma_ast" }
|
||||
|
@ -22,7 +22,7 @@ path = []
|
||||
|
||||
[dependencies]
|
||||
num-bigint = { version = "0.4", features = ["serde"] }
|
||||
serde = { workspace = true, optional = true }
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.94.3", path = "../swc_ecma_ast" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -20,7 +20,7 @@ ahash = { version = "0.7.0", features = ["compile-time-rng"] }
|
||||
anyhow = "1"
|
||||
copyless = "0.1.5"
|
||||
rayon = "1.5.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1.0.62"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common", features = [
|
||||
|
@ -23,7 +23,7 @@ rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
bytecheck = { version = "0.6.9", optional = true }
|
||||
is-macro = "0.2.0"
|
||||
rkyv = { version = "=0.7.37", optional = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -17,7 +17,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
once_cell = "1.10.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.14", path = "../swc_cached" }
|
||||
|
@ -26,7 +26,7 @@ swc_html_utils = { version = "0.14.4", path = "../swc_html_utils" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.127"
|
||||
serde_json = "1.0.66"
|
||||
swc_html_visit = { version = "0.26.4", path = "../swc_html_visit" }
|
||||
swc_node_base = { version = "0.5.0", path = "../swc_node_base" }
|
||||
|
@ -17,7 +17,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
once_cell = "1.10.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.17", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -23,7 +23,7 @@ default = ["serde"]
|
||||
path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true, optional = true }
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_html_ast = { version = "0.26.4", path = "../swc_html_ast" }
|
||||
|
@ -23,7 +23,7 @@ dashmap = "5.1.0"
|
||||
is-macro = "0.2.0"
|
||||
once_cell = "1.10.0"
|
||||
regex = "1"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
string_enum = { version = "0.3", path = "../string_enum" }
|
||||
swc = { version = "0.230.10", path = "../swc" }
|
||||
|
@ -17,7 +17,7 @@ napi = { version = "2", default-features = false, features = [
|
||||
"napi3",
|
||||
"serde-json",
|
||||
] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = { version = "1", features = ["unbounded_depth"] }
|
||||
swc_node_base = { version = "0.5.5", path = "../swc_node_base" }
|
||||
tracing = { version = "0.1.32", features = ["release_max_level_info"] }
|
||||
|
@ -40,7 +40,7 @@ rkyv-impl = [
|
||||
anyhow = "1.0.42"
|
||||
once_cell = "1.10.0"
|
||||
parking_lot = "0.12.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.126", features = ["derive"] }
|
||||
serde_json = "1.0.64"
|
||||
swc_common = { version = "0.29.3", path = "../swc_common", features = [
|
||||
"concurrent",
|
||||
|
@ -10,7 +10,7 @@ version = "0.1.0"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.145"
|
||||
serde = "1"
|
||||
swc_core = { path = "../../../../swc_core", features = [
|
||||
"plugin_transform",
|
||||
"ecma_quote",
|
||||
|
@ -10,5 +10,5 @@ version = "0.1.0"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.145"
|
||||
serde = "1"
|
||||
swc_core = { path = "../../../../swc_core", features = ["plugin_transform"] }
|
||||
|
@ -16,7 +16,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
is-macro = "0.2.0"
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
|
@ -25,7 +25,7 @@ swc_xml_ast = { version = "0.4.3", path = "../swc_xml_ast" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.127"
|
||||
serde_json = "1.0.66"
|
||||
swc_node_base = { version = "0.5.0", path = "../swc_node_base" }
|
||||
swc_xml_visit = { version = "0.4.3", path = "../swc_xml_visit" }
|
||||
|
@ -23,7 +23,7 @@ default = ["serde"]
|
||||
path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true, optional = true }
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.29.3", path = "../swc_common" }
|
||||
swc_visit = { version = "0.5.3", path = "../swc_visit" }
|
||||
|
@ -36,6 +36,7 @@
|
||||
"consts",
|
||||
"corejs",
|
||||
"creduce",
|
||||
"crev",
|
||||
"ctxt",
|
||||
"ctxts",
|
||||
"declarators",
|
||||
|
@ -10,7 +10,7 @@ version = "0.1.0"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.140"
|
||||
# Intentionally referencing published version, known to not contain new AST struct changes.
|
||||
# Be careful to change this dependency version. Unless there isn't explicit reason to do so,
|
||||
# do not change.
|
||||
|
@ -10,5 +10,5 @@ version = "0.1.0"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
serde = {workspace = true}
|
||||
serde = "1.0.140"
|
||||
swc_core = { path = "../../../../crates/swc_core", features = ["__plugin_transform_schema_test"] }
|
||||
|
@ -1 +1 @@
|
||||
nightly-2022-09-23
|
||||
nightly-2022-09-23
|
Loading…
Reference in New Issue
Block a user