diff --git a/CHANGELOG.md b/CHANGELOG.md index 904ee3fc53..f000aadfee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ #### :boom: Breaking Change - `Result.getOrThrow` now throws a JS error instead of a `Not_found` ReScript exception. https://github.com/rescript-lang/rescript/pull/7630 +- Remove `rescript dump` command. `bsc` can be used directly to dump the contents of a `.cmi` file instead if needed. https://github.com/rescript-lang/rescript/pull/7710 #### :rocket: New Feature diff --git a/rewatch/src/cli.rs b/rewatch/src/cli.rs index 544e8c8637..0870f603ea 100644 --- a/rewatch/src/cli.rs +++ b/rewatch/src/cli.rs @@ -203,12 +203,6 @@ pub enum Command { #[arg(group = "format_input_mode", required_unless_present_any = ["format_input_mode"])] files: Vec, }, - /// Alias to `legacy dump`. - #[command(disable_help_flag = true)] - Dump { - #[arg(allow_hyphen_values = true, num_args = 0..)] - dump_args: Vec, - }, /// This prints the compiler arguments. It expects the path to a rescript file (.res or .resi). CompilerArgs { /// Path to a rescript file (.res or .resi) diff --git a/rewatch/src/main.rs b/rewatch/src/main.rs index 76f33b4ab8..7ae9ae0884 100644 --- a/rewatch/src/main.rs +++ b/rewatch/src/main.rs @@ -97,11 +97,6 @@ fn main() -> Result<()> { check, files, } => format::format(stdin, all, check, files), - cli::Command::Dump { mut dump_args } => { - dump_args.insert(0, "dump".into()); - let code = build::pass_through_legacy(dump_args); - std::process::exit(code); - } } }