Skip to content

Commit 6b5904c

Browse files
authored
refactor(ts/fast-strip): Rename crate (#10685)
**Description:** I'll rename `swc_typescript` with a follow up PR.
1 parent 578f34f commit 6b5904c

File tree

131 files changed

+44
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+44
-38
lines changed

.changeset/shiny-ladybugs-jam.md

Lines changed: 6 additions & 0 deletions

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
run: |
150150
echo '[patch.crates-io]' >> bindings/Cargo.toml
151151
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
152-
cd bindings && cargo update -p swc_core -p swc_fast_ts_strip
152+
cd bindings && cargo update -p swc_core -p swc_ts_fast_strip
153153
154154
- name: Install wasm-pack
155155
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -367,7 +367,7 @@ jobs:
367367
echo '[patch.crates-io]' >> bindings/Cargo.toml
368368
./scripts/cargo/patch-section.sh
369369
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
370-
cd bindings && cargo update -p swc_core -p swc_fast_ts_strip
370+
cd bindings && cargo update -p swc_core -p swc_ts_fast_strip
371371
372372
- name: Set platform name
373373
run: |
@@ -424,7 +424,7 @@ jobs:
424424
run: |
425425
echo '[patch.crates-io]' >> bindings/Cargo.toml
426426
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
427-
cd bindings && cargo update -p swc_core -p swc_fast_ts_strip
427+
cd bindings && cargo update -p swc_core -p swc_ts_fast_strip
428428
429429
- name: Prepare
430430
run: |

Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resolver = "2"
4747
swc_css_parser = "13.0.0"
4848
swc_ecma_react_compiler = "6.0.0"
4949
swc_error_reporters = "15.0.0"
50-
swc_fast_ts_strip = "23.0.0"
50+
swc_ts_fast_strip = "23.0.0"
5151
swc_html = "23.0.0"
5252
swc_html_ast = "13.0.0"
5353
swc_html_minifier = "23.0.0"

bindings/binding_typescript_wasm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bench = false
1313
crate-type = ["cdylib"]
1414

1515
[features]
16-
nightly = ["swc_fast_ts_strip/nightly"]
16+
nightly = ["swc_ts_fast_strip/nightly"]
1717

1818
[dependencies]
1919
anyhow = { workspace = true }
@@ -26,7 +26,7 @@ serde-wasm-bindgen = { workspace = true }
2626
serde_json = { workspace = true }
2727
swc_common = { workspace = true }
2828
swc_error_reporters = { workspace = true }
29-
swc_fast_ts_strip = { workspace = true, features = ["wasm-bindgen"] }
29+
swc_ts_fast_strip = { workspace = true, features = ["wasm-bindgen"] }
3030
tracing = { workspace = true, features = ["max_level_off"] }
3131
unicode-width = { workspace = true }
3232
wasm-bindgen = { workspace = true, features = ["enable-interning"] }

bindings/binding_typescript_wasm/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use swc_common::{
1515
SourceMap, Span, GLOBALS,
1616
};
1717
use swc_error_reporters::{convert_span, to_pretty_source_code};
18-
use swc_fast_ts_strip::{Options, TransformOutput};
18+
use swc_ts_fast_strip::{Options, TransformOutput};
1919
use wasm_bindgen::prelude::*;
2020
use wasm_bindgen_futures::{future_to_promise, js_sys::Promise};
2121

@@ -70,7 +70,7 @@ fn operate(input: String, options: Options) -> Result<TransformOutput, Vec<JsonD
7070
let cm = Lrc::new(SourceMap::default());
7171

7272
try_with_json_handler(cm.clone(), |handler| {
73-
swc_fast_ts_strip::operate(&cm, handler, input, options).map_err(anyhow::Error::new)
73+
swc_ts_fast_strip::operate(&cm, handler, input, options).map_err(anyhow::Error::new)
7474
})
7575
}
7676

crates/swc_fast_ts_strip/Cargo.toml renamed to crates/swc_ts_fast_strip/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/swc_fast_type_strip/"
55
edition = { workspace = true }
66
include = ["Cargo.toml", "src/**/*.rs"]
77
license = { workspace = true }
8-
name = "swc_fast_ts_strip"
8+
name = "swc_ts_fast_strip"
99
repository = { workspace = true }
1010
version = "23.0.2"
1111

crates/swc_fast_ts_strip/benches/assets.rs renamed to crates/swc_ts_fast_strip/benches/assets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Bencher, Criterion};
2-
use swc_fast_ts_strip::{operate, Options};
2+
use swc_ts_fast_strip::{operate, Options};
33

44
static SOURCE: &str = include_str!("assets/test.ts");
55

0 commit comments

Comments
 (0)