Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 41 additions & 25 deletions deps/swc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_core_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_core_wasm"
publish = false
repository = { workspace = true }
version = "1.15.30"
version = "1.15.33"

[lib]
bench = false
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_es_ast_viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = { workspace = true }
name = "binding_es_ast_viewer"
publish = false
repository = { workspace = true }
version = "1.15.30"
version = "1.15.33"

[dependencies]
anyhow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_html_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_html_wasm"
publish = false
repository = { workspace = true }
version = "1.15.30"
version = "1.15.33"

[lib]
bench = false
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_minifier_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_minifier_wasm"
publish = false
repository = { workspace = true }
version = "1.15.30"
version = "1.15.33"

[lib]
bench = false
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_typescript_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_typescript_wasm"
publish = false
repository = { workspace = true }
version = "1.15.30"
version = "1.15.33"

[lib]
bench = false
Expand Down
4 changes: 2 additions & 2 deletions deps/swc/bindings/swc_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = { workspace = true }
name = "swc_cli"
repository = { workspace = true }
version = "0.109.5"
version = "0.110.5"

[[bin]]
bench = false
Expand All @@ -20,4 +20,4 @@ plugin = ["swc_cli_impl/plugin"]
[dependencies]
anyhow = { workspace = true }
par-core = { workspace = true, features = ["chili"] }
swc_cli_impl = { version = "64.0.0", path = "../../crates/swc_cli_impl" }
swc_cli_impl = { version = "65.0.0", path = "../../crates/swc_cli_impl" }
4 changes: 2 additions & 2 deletions deps/swc/crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = { workspace = true }
license = { workspace = true }
name = "binding_macros"
repository = { workspace = true }
version = "62.0.0"
version = "63.0.0"

[lib]
bench = false
Expand Down Expand Up @@ -33,7 +33,7 @@ binding_wasm = [

[dependencies]
# Common deps for the SWC imports
swc = { optional = true, version = "62.0.0", path = "../swc", default-features = false }
swc = { optional = true, version = "63.0.0", path = "../swc", default-features = false }
swc_common = { optional = true, version = "21.0.1", path = "../swc_common", default-features = false }
swc_ecma_ast = { optional = true, version = "23.0.0", path = "../swc_ecma_ast", default-features = false }
swc_ecma_transforms = { optional = true, version = "52.0.0", path = "../swc_ecma_transforms", default-features = false }
Expand Down
6 changes: 3 additions & 3 deletions deps/swc/crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ swc_common = { version = "21.0.1", features = [
], path = "../swc_common" }
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "26.0.1", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "52.0.0", path = "../swc_ecma_minifier", features = [
swc_ecma_minifier = { version = "52.0.3", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_parser = { version = "39.0.0", path = "../swc_ecma_parser", features = [
swc_ecma_parser = { version = "39.0.2", path = "../swc_ecma_parser", features = [
"flow",
] }
swc_ecma_transforms_base = { version = "42.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_typescript = { version = "46.0.0", path = "../swc_ecma_transforms_typescript" }
swc_ecma_transforms_typescript = { version = "46.0.1", path = "../swc_ecma_transforms_typescript" }
swc_ecma_visit = { version = "23.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "23.0.0", path = "../swc_error_reporters" }
swc_timer = { version = "1.0.0", path = "../swc_timer" }
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ swc_common = { version = "21.0.1", path = "../swc_common" }

[dev-dependencies]
dashmap = { workspace = true }
swc_ecma_parser = { version = "39.0.0", path = "../swc_ecma_parser" }
swc_ecma_parser = { version = "39.0.2", path = "../swc_ecma_parser" }
testing = { version = "22.0.0", path = "../testing" }
27 changes: 27 additions & 0 deletions deps/swc/crates/swc-ast-explorer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Small CLI for printing SWC EcmaScript ASTs"
edition = { workspace = true }
license = { workspace = true }
name = "swc-ast-explorer"
publish = false
repository = { workspace = true }
version = "0.1.0"

[[bin]]
bench = false
name = "swc-ast-explorer"
path = "src/main.rs"

[dependencies]
anyhow = { workspace = true }
clap = { version = "3", features = ["derive"] }
owo-colors = { workspace = true }
regex = { workspace = true }
swc_common = { version = "21.0.1", path = "../swc_common" }
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "39.0.2", path = "../swc_ecma_parser" }
swc_error_reporters = { version = "23.0.0", path = "../swc_error_reporters" }

[dev-dependencies]
assert_cmd = { workspace = true }
9 changes: 9 additions & 0 deletions deps/swc/crates/swc-ast-explorer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# swc-ast-explorer

A small binary to print SWC EcmaScript and TypeScript abstract syntax trees.

```shell
echo "console.log('hello')" | cargo run -p swc-ast-explorer
```

Use `--spans` to keep span fields in the printed tree.
10 changes: 10 additions & 0 deletions deps/swc/crates/swc-ast-explorer/src/args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use clap::Parser;

/// Command line options for the SWC AST explorer.
#[derive(Debug, Parser)]
#[clap(author, version, about, long_about = None)]
pub struct Args {
/// Whether to keep Span (location) markers.
#[clap(long, value_parser, default_value_t = false)]
pub spans: bool,
}
Loading
Loading