diff options
author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-10-29 23:55:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 22:55:41 +0100 |
commit | 3b28446000d8d063c07ef320314ef493a9e0bffa (patch) | |
tree | f1a9b025955338527e4562c75dfe4d0d4b659fba /cli/args | |
parent | a69224ea5bd02f08108aac867c492754095f2d34 (diff) |
fix: support watch flag to enable watching other files than the main module on serve subcommand (#26622)
Closes #26618
Diffstat (limited to 'cli/args')
-rw-r--r-- | cli/args/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 927f43e85..f5ecc0449 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1672,6 +1672,10 @@ impl CliOptions { if let DenoSubcommand::Run(RunFlags { watch: Some(WatchFlagsWithPaths { paths, .. }), .. + }) + | DenoSubcommand::Serve(ServeFlags { + watch: Some(WatchFlagsWithPaths { paths, .. }), + .. }) = &self.flags.subcommand { full_paths.extend(paths.iter().map(|path| self.initial_cwd.join(path))); |