Skip to content

Commit

Permalink
Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 24, 2023
1 parent 6275840 commit 61983b0
Show file tree
Hide file tree
Showing 27 changed files with 162 additions and 125 deletions.
6 changes: 4 additions & 2 deletions crates/swc_ecma_transforms_typescript/Cargo.toml
Expand Up @@ -13,7 +13,8 @@ version = "0.171.20"
bench = false

[dependencies]
serde = { version = "1.0.118", features = ["derive"] }
serde = { version = "1.0.118", features = ["derive"] }

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
Expand All @@ -23,7 +24,8 @@ swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.3"

swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" }
swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" }
swc_ecma_transforms_compat = { version = "0.148.18", path = "../swc_ecma_transforms_compat" }
Expand Down
9 changes: 5 additions & 4 deletions crates/swc_ecma_usage_analyzer/Cargo.toml
Expand Up @@ -22,13 +22,14 @@ concurrent = ["swc_common/concurrent", "indexmap/rayon"]
trace-ast = []

[dependencies]
ahash = "0.7.6"
indexmap = "1.6.1"
rustc-hash = "1.1.0"
ahash = "0.7.6"
indexmap = "1.6.1"
rustc-hash = "1.1.0"
tracing = "0.1.32"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }
swc_timer = { version = "0.17.42", path = "../swc_timer" }
tracing = "0.1.32"
15 changes: 8 additions & 7 deletions crates/swc_ecma_utils/Cargo.toml
Expand Up @@ -20,17 +20,18 @@ bench = false
concurrent = ["swc_common/concurrent", "rayon"]

[dependencies]
indexmap = "1.6.1"
num_cpus = "1.13.1"
once_cell = "1.10.0"
rayon = { version = "1.5.1", optional = true }
rustc-hash = "1.1.0"
indexmap = "1.6.1"
num_cpus = "1.13.1"
once_cell = "1.10.0"
rayon = { version = "1.5.1", optional = true }
rustc-hash = "1.1.0"
tracing = "0.1.32"
unicode-id = "0.3"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }
tracing = "0.1.32"
unicode-id = "0.3"

[dev-dependencies]
swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" }
Expand Down
7 changes: 4 additions & 3 deletions crates/swc_ecma_visit/Cargo.toml
Expand Up @@ -21,10 +21,11 @@ default = []
path = []

[dependencies]
num-bigint = { version = "0.4", features = ["serde"] }
serde = { version = "1", optional = true }
num-bigint = { version = "0.4", features = ["serde"] }
serde = { version = "1", optional = true }
tracing = "0.1.32"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_visit = { version = "0.5.5", path = "../swc_visit" }
tracing = "0.1.32"
7 changes: 4 additions & 3 deletions crates/swc_error_reporters/Cargo.toml
Expand Up @@ -12,10 +12,11 @@ version = "0.13.40"
bench = false

[dependencies]
anyhow = "1"
miette = { version = "4.2.1", features = ["fancy"] }
once_cell = "1"
anyhow = "1"
miette = { version = "4.2.1", features = ["fancy"] }
once_cell = "1"
parking_lot = "0.12.0"

swc_common = { version = "0.29.39", path = "../swc_common", features = [
"concurrent",
] }
5 changes: 3 additions & 2 deletions crates/swc_estree_ast/Cargo.toml
Expand Up @@ -18,8 +18,9 @@ version = "0.19.39"
bench = false

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"

better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
16 changes: 9 additions & 7 deletions crates/swc_estree_compat/Cargo.toml
Expand Up @@ -16,12 +16,13 @@ version = "0.178.27"
bench = false

[dependencies]
ahash = { version = "0.7.0", features = ["compile-time-rng"] }
anyhow = "1"
copyless = "0.1.5"
rayon = "1.5.0"
serde = { version = "1", features = ["derive"] }
ahash = { version = "0.7.0", features = ["compile-time-rng"] }
anyhow = "1"
copyless = "0.1.5"
rayon = "1.5.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.62"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common", features = [
"concurrent",
Expand All @@ -36,8 +37,9 @@ swc_estree_ast = { version = "0.19.39", path = "../swc_estree_ast" }
swc_node_comments = { version = "0.16.39", path = "../swc_node_comments/" }

[dev-dependencies]
criterion = "0.3"
pretty_assertions = "1.1"
criterion = "0.3"
pretty_assertions = "1.1"

swc = { version = "0.255.27", path = "../swc" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" }
Expand Down
21 changes: 11 additions & 10 deletions crates/swc_fast_graph/Cargo.toml
@@ -1,18 +1,19 @@
[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Faster version of petgraph"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_fast_graph"
repository = "https://github.com/swc-project/swc.git"
version = "0.17.41"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_fast_graph"
repository = "https://github.com/swc-project/swc.git"
version = "0.17.41"

[lib]
bench = false

[dependencies]
indexmap = "1.6.1"
petgraph = "0.6"
swc_common = { version = "0.29.39", path = "../swc_common" }
indexmap = "1.6.1"
petgraph = "0.6"
rustc-hash = "1.1.0"

swc_common = { version = "0.29.39", path = "../swc_common" }
11 changes: 6 additions & 5 deletions crates/swc_html_ast/Cargo.toml
Expand Up @@ -17,13 +17,14 @@ bench = false
[features]
__rkyv = []
rkyv-bytecheck-impl = []
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]

[dependencies]
bytecheck = { version = "0.6.9", optional = true }
is-macro = "0.2.0"
rkyv = { version = "=0.7.37", optional = true }
serde = { version = "1.0.127", features = ["derive"] }
bytecheck = { version = "0.6.9", optional = true }
is-macro = "0.2.0"
rkyv = { version = "=0.7.37", optional = true }
serde = { version = "1.0.127", features = ["derive"] }

string_enum = { version = "0.3.4", path = "../string_enum/" }
swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
7 changes: 4 additions & 3 deletions crates/swc_html_codegen/Cargo.toml
Expand Up @@ -16,9 +16,10 @@ version = "0.37.45"
bench = false

[dependencies]
auto_impl = "0.5.0"
bitflags = "1.3.2"
rustc-hash = "1.1.0"
auto_impl = "0.5.0"
bitflags = "1.3.2"
rustc-hash = "1.1.0"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" }
Expand Down
9 changes: 5 additions & 4 deletions crates/swc_html_codegen_macros/Cargo.toml
Expand Up @@ -16,8 +16,9 @@ bench = false
proc-macro = true

[dependencies]
pmutil = "0.5.1"
proc-macro2 = "1"
quote = "1"
pmutil = "0.5.1"
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["fold"] }

swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" }
syn = { version = "1", features = ["fold"] }
10 changes: 6 additions & 4 deletions crates/swc_html_minifier/Cargo.toml
Expand Up @@ -16,9 +16,10 @@ version = "0.115.26"
bench = false

[dependencies]
once_cell = "1.10.0"
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.61"
once_cell = "1.10.0"
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.61"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_cached = { version = "0.3.15", path = "../swc_cached" }
swc_common = { version = "0.29.39", path = "../swc_common" }
Expand All @@ -39,7 +40,8 @@ swc_html_utils = { version = "0.14.40", path = "../swc_html_utils" }
swc_html_visit = { version = "0.28.32", path = "../swc_html_visit" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.3"

swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
testing = { version = "0.31.42", path = "../testing" }

Expand Down
7 changes: 4 additions & 3 deletions crates/swc_html_parser/Cargo.toml
Expand Up @@ -25,9 +25,10 @@ swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" }
swc_html_utils = { version = "0.14.40", path = "../swc_html_utils" }

[dev-dependencies]
criterion = "0.3"
serde = "1.0.127"
serde_json = "1.0.66"
criterion = "0.3"
serde = "1.0.127"
serde_json = "1.0.66"

swc_html_visit = { version = "0.28.32", path = "../swc_html_visit" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
testing = { version = "0.31.42", path = "../testing" }
Expand Down
1 change: 1 addition & 0 deletions crates/swc_html_utils/Cargo.toml
Expand Up @@ -19,5 +19,6 @@ bench = false
once_cell = "1.10.0"
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.61"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
3 changes: 2 additions & 1 deletion crates/swc_html_visit/Cargo.toml
Expand Up @@ -23,7 +23,8 @@ default = ["serde"]
path = []

[dependencies]
serde = { version = "1", optional = true }
serde = { version = "1", optional = true }

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" }
Expand Down
18 changes: 10 additions & 8 deletions crates/swc_node_bundler/Cargo.toml
Expand Up @@ -18,13 +18,15 @@ swc_v1 = []
swc_v2 = []

[dependencies]
anyhow = "1"
dashmap = "5.1.0"
is-macro = "0.2.0"
once_cell = "1.10.0"
regex = "1"
serde = { version = "1", features = ["derive"] }
anyhow = "1"
dashmap = "5.1.0"
is-macro = "0.2.0"
once_cell = "1.10.0"
regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tracing = "0.1.32"

string_enum = { version = "0.3.4", path = "../string_enum" }
swc = { version = "0.255.27", path = "../swc" }
swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
Expand All @@ -42,8 +44,8 @@ swc_ecma_transforms = { version = "0.212.21", path = "../swc_ecma_transforms" }
swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
tracing = "0.1.32"

[dev-dependencies]
pretty_assertions = "1.1"
testing = { version = "0.31.42", path = "../testing" }

testing = { version = "0.31.42", path = "../testing" }
5 changes: 3 additions & 2 deletions crates/swc_node_comments/Cargo.toml
Expand Up @@ -15,7 +15,8 @@ version = "0.16.39"
bench = false

[dependencies]
ahash = "0.7.6"
dashmap = "5.1.0"
ahash = "0.7.6"
dashmap = "5.1.0"

swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_common = { version = "0.29.39", path = "../swc_common" }
16 changes: 9 additions & 7 deletions crates/swc_plugin_proxy/Cargo.toml
Expand Up @@ -36,12 +36,14 @@ plugin-bytecheck-mode = [
plugin-mode = ["__plugin_mode", "swc_common/plugin-base", "rkyv-impl"]

[dependencies]
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
rkyv = { package = "rkyv", version = "=0.7.37", optional = true }

rkyv = { package = "rkyv", version = "=0.7.37", optional = true }
# This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned
# cannot be merged.
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" }
tracing = "0.1.32"
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
tracing = "0.1.32"

better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
swc_common = { version = "0.29.39", path = "../swc_common" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" }
25 changes: 14 additions & 11 deletions crates/swc_plugin_runner/Cargo.toml
Expand Up @@ -36,29 +36,34 @@ rkyv-bytecheck-impl = [
rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"]

[dependencies]
anyhow = "1.0.42"
enumset = "1.0.12"
once_cell = "1.10.0"
anyhow = "1.0.42"
enumset = "1.0.12"
once_cell = "1.10.0"
parking_lot = "0.12.0"
serde = { version = "1.0.126", features = ["derive"] }
serde_json = "1.0.64"
serde = { version = "1.0.126", features = ["derive"] }
serde_json = "1.0.64"
tracing = "0.1.32"
wasmer = { version = "2.3.0", default-features = false }
wasmer-wasi = { version = "2.3.0", default-features = false }

swc_common = { version = "0.29.39", path = "../swc_common", features = [
"concurrent",
] }
swc_css_ast = { version = "0.134.13", path = "../swc_css_ast", optional = true }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast", optional = true }
swc_plugin_proxy = { version = "0.29.5", path = "../swc_plugin_proxy" }
tracing = "0.1.32"
wasmer = { version = "2.3.0", default-features = false }
wasmer-wasi = { version = "2.3.0", default-features = false }


[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasmer-cache = { version = "2.3.0", optional = true }
wasmer-compiler-cranelift = { version = "2.3.0" }
wasmer-engine-universal = { version = "2.3.0" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.3"
wasmer = "2.3.0"
wasmer-wasi = "2.3.0"

swc_atoms = { version = "0.4.39", path = '../swc_atoms' }
swc_css_ast = { version = "0.134.13", path = "../swc_css_ast", features = [
"rkyv-impl",
Expand All @@ -72,8 +77,6 @@ swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
testing = { version = "0.31.42", path = "../testing" }
wasmer = "2.3.0"
wasmer-wasi = "2.3.0"

[[bench]]
harness = false
Expand Down
3 changes: 2 additions & 1 deletion crates/swc_visit/Cargo.toml
Expand Up @@ -14,5 +14,6 @@ bench = false
path = []

[dependencies]
either = "1.5.3"
either = "1.5.3"

swc_visit_macros = { version = "0.5.6", path = "../swc_visit_macros" }

0 comments on commit 61983b0

Please sign in to comment.