summaryrefslogtreecommitdiff
path: root/cli/args
diff options
context:
space:
mode:
authorHasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>2024-10-29 23:55:41 +0200
committerGitHub <noreply@github.com>2024-10-29 22:55:41 +0100
commit3b28446000d8d063c07ef320314ef493a9e0bffa (patch)
treef1a9b025955338527e4562c75dfe4d0d4b659fba /cli/args
parenta69224ea5bd02f08108aac867c492754095f2d34 (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.rs4
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)));