mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix: support watch flag to enable watching other files than the main module on serve subcommand (#26622)
Closes #26618
This commit is contained in:
parent
a69224ea5b
commit
3b28446000
2 changed files with 74 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue