diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-11-23 05:45:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 21:45:44 +0100 |
commit | e3f73d3ec0aa822c9d125374ec34b7d8d5dfc0a5 (patch) | |
tree | 1f61389d70aeb116bb7075d5489c042d5d8a2d52 /cli/tools/lint.rs | |
parent | 17d4cd92133bb822ff3a4f2f5bb32dfd17f99282 (diff) |
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.
Diffstat (limited to 'cli/tools/lint.rs')
-rw-r--r-- | cli/tools/lint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |