From e3f73d3ec0aa822c9d125374ec34b7d8d5dfc0a5 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 23 Nov 2020 05:45:44 +0900 Subject: feat(unstable): Support --watch flag for bundle and fmt subcommands (#8276) This commit adds support for "--watch" flag for "bundle" and "fmt" subcommands. In addition to this, it refactors "run --watch" command so that module resolution will occur every time the file watcher detects file addition/deletion, which allows the watcher to observe a file that is newly added to the dependency as well. --- cli/tools/lint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools/lint.rs') diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index f17709c8b..c40dcfd54 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -47,7 +47,7 @@ pub async fn lint_files( if args.len() == 1 && args[0].to_string_lossy() == "-" { return lint_stdin(json); } - let target_files = collect_files(args, ignore, is_supported_ext)?; + let target_files = collect_files(&args, &ignore, is_supported_ext)?; debug!("Found {} files", target_files.len()); let target_files_len = target_files.len(); -- cgit v1.2.3