From 4c32cd7499b79aac8877d1ff5b364122db1109cf Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Mon, 16 Oct 2023 17:41:40 -0400 Subject: [PATCH] fix(core): correct windows path for native watcher Co-authored-by: Sviatoslav Zaytsev --- packages/nx/src/native/watch/watcher.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/native/watch/watcher.rs b/packages/nx/src/native/watch/watcher.rs index 624deafadbf02..8b9c3614d2852 100644 --- a/packages/nx/src/native/watch/watcher.rs +++ b/packages/nx/src/native/watch/watcher.rs @@ -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),