Skip to content

Commit

Permalink
feat(run): Add watch-exclude flag (denoland#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
lczerniawski authored Mar 8, 2024
1 parent 32b2c5d commit e733b0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runtime/manual/getting_started/command_line_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ deno test --watch
deno fmt --watch
```

You can exclude paths from watching by providing the `--watch-exclude` flag.
This flag works only with `deno run`. The syntax is
`--watch-exclude=path1,path2`. For example:

```shell
deno run --watch --watch-exclude=file1.ts,file2.ts main.ts
```

This will exclude file1.ts and file2.ts from being watched.

## Hot Module Replacement mode

You can use `--unstable-hmr` flag with `deno run` to enable the hot module
Expand Down

0 comments on commit e733b0b

Please sign in to comment.