Skip to content

Commit

Permalink
chore: Apply cargo-autoinherit (#9244)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 15, 2024
1 parent 11af557 commit e086f38
Show file tree
Hide file tree
Showing 26 changed files with 48 additions and 27 deletions.
24 changes: 5 additions & 19 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ resolver = "2"
bitflags = "2.5.0"
browserslist-rs = "0.16.0"
bumpalo = "3.16.0"
cargo_metadata = "0.18.1"
cfg-if = "1.0.0"
chrono = "0.4.38"
codspeed-criterion-compat = "2.6.0"
Expand Down Expand Up @@ -98,6 +99,7 @@ resolver = "2"
proc-macro2 = "1.0.24"
ptr_meta = "0.1.4"
quote = "1.0.7"
radix_fmt = "1.0.0"
rayon = "1.7.0"
regex = "1.5.4"
relative-path = "1.6.1"
Expand Down Expand Up @@ -127,6 +129,7 @@ resolver = "2"
tracing-chrome = "0.5.0"
tracing-futures = "0.2.5"
tracing-subscriber = "0.3.18"
triomphe = "0.1.13"
typed-arena = "2.0.1"
unicode-id = "0.3"
unicode-id-start = "1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ptr_meta = { workspace = true }
rkyv = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
triomphe = "0.1.13"
triomphe = { workspace = true }


[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ is-macro = { workspace = true }
once_cell = { workspace = true }
parking_lot = { workspace = true }
petgraph = { workspace = true }
radix_fmt = "1"
radix_fmt = { workspace = true }
rayon = { workspace = true, optional = true }
relative-path = { workspace = true }
tracing = { workspace = true }
Expand All @@ -53,7 +53,7 @@ swc_graph_analyzer = { version = "0.24.0", path = "../swc_graph_an
[dev-dependencies]
hex = { workspace = true }
ntest = { workspace = true }
path-clean = "=0.1.0"
path-clean = "1.0.1"
reqwest = { workspace = true, features = ["blocking"] }
sha1 = { workspace = true }
tempfile = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_minifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ once_cell = { workspace = true }
parking_lot = { workspace = true }
phf = { workspace = true }
pretty_assertions = { workspace = true, optional = true }
radix_fmt = "=1.0.0"
radix_fmt = { workspace = true }
rayon = { workspace = true, optional = true }
regex = { workspace = true }
rustc-hash = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ anyhow = { workspace = true }
bitflags = { workspace = true }
indexmap = { workspace = true }
is-macro = { workspace = true }
path-clean = "0.1.0"
path-clean = "1.0.1"
pathdiff = { workspace = true }
regex = { workspace = true }
serde = { workspace = true, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_fast_ts_strip/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use testing::NormalizedOutput;
fn test(input: PathBuf) {
let input_code = std::fs::read_to_string(&input).unwrap();
let output_file = input.with_extension("js");
let transform_output_file = input.with_file_name("output.transform.js");
let transform_output_file = input.with_extension("transform.js");

testing::run_test(false, |cm, handler| {
let code = operate(&cm, handler, input_code.clone(), opts(Mode::StripOnly))
Expand Down
6 changes: 6 additions & 0 deletions crates/swc_fast_ts_strip/tests/fixture/class.transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class B {
static y() {}
}
class A extends B {
static y() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const foo = [
1,
3,
5
];
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const foo = call;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function typeAnn({ a, b: b1, c: c1 }) {
console.log(a, b1, c1);
}
export function optional(a) {
console.log(a, b, c);
}
1 change: 1 addition & 0 deletions crates/swc_fast_ts_strip/tests/fixture/test-1.transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
throw new Error('Whitespacing');
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export function foo() {}
export function bar(x) {}
export function foo2() {}
export function bar2(x) {}
1 change: 1 addition & 0 deletions crates/swc_fast_ts_strip/tests/fixture/tricky.transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const foo = (id)=>{};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const foo = 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { x9 } from "m5";
export { x9, };
5 changes: 5 additions & 0 deletions crates/swc_fast_ts_strip/tests/fixture/unicode.transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function foo() {
void 1;
throw new Error('foo');
}
foo();
2 changes: 1 addition & 1 deletion crates/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bench = false

[dependencies]
ansi_term = { workspace = true }
cargo_metadata = "0.15.4"
cargo_metadata = { workspace = true }
difference = { workspace = true }
once_cell = { workspace = true }
pretty_assertions = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version = "0.1.0"

[dependencies]
anyhow = { workspace = true }
cargo_metadata = "0.18.0"
cargo_metadata = { workspace = true }
chrono = { workspace = true }
clap = { version = "4.4.6", features = ["derive"] }
semver = { workspace = true }
Expand Down

0 comments on commit e086f38

Please sign in to comment.