Skip to content

Commit

Permalink
fix(core): correct windows path for native watcher
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Zaytsev <[email protected]>
  • Loading branch information
Cammisuli and Sviatoslav Zaytsev committed Oct 16, 2023
1 parent 513e234 commit 4c32cd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nx/src/native/watch/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ impl Watcher {
globs.push("node_modules/".into());

Ok(Watcher {
origin,
origin: if cfg!(window) {
origin.replace("/", "\\")
} else {
origin
},
watch_exec,
additional_globs: globs,
use_ignore: use_ignore.unwrap_or(true),
Expand Down

0 comments on commit 4c32cd7

Please sign in to comment.