Skip to content

Commit 66e25c9

Browse files
committed
Revert cli changes
1 parent cf1b90c commit 66e25c9

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

rewatch/src/build/clean.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,17 +331,15 @@ pub fn cleanup_after_build(build_state: &BuildState) {
331331
});
332332
}
333333

334-
pub fn clean(path: &Path, show_progress: bool, snapshot_output: bool) -> Result<()> {
334+
pub fn clean(path: &Path, show_progress: bool, snapshot_output: bool, build_dev_deps: bool) -> Result<()> {
335335
let project_root = helpers::get_abs_path(path);
336336
let workspace_root = helpers::get_workspace_root(&project_root);
337337
let packages = packages::make(
338338
&None,
339339
&project_root,
340340
&workspace_root,
341341
show_progress,
342-
// Build the package tree with dev dependencies.
343-
// They should always be cleaned if they are there.
344-
true,
342+
build_dev_deps,
345343
)?;
346344
let root_config_name = packages::read_package_name(&project_root)?;
347345
let bsc_path = helpers::get_bsc();

rewatch/src/cli.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ pub enum Command {
143143

144144
#[command(flatten)]
145145
snapshot_output: SnapshotOutputArg,
146+
147+
#[command(flatten)]
148+
dev: DevArg,
146149
},
147150
/// Alias to `legacy format`.
148151
#[command(disable_help_flag = true)]

rewatch/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,16 @@ fn main() -> Result<()> {
7979
cli::Command::Clean {
8080
folder,
8181
snapshot_output,
82+
dev,
8283
} => {
8384
let _lock = get_lock(&folder);
8485

85-
build::clean::clean(Path::new(&folder as &str), show_progress, *snapshot_output)
86+
build::clean::clean(
87+
Path::new(&folder as &str),
88+
show_progress,
89+
*snapshot_output,
90+
dev.dev,
91+
)
8692
}
8793
cli::Command::Legacy { legacy_args } => {
8894
let code = build::pass_through_legacy(legacy_args);

0 commit comments

Comments
 (0)