Skip to content

Commit 1f5520e

Browse files
authored
fix(core): add missing FileType import for Windows watcher build (#34369)
## Current Behavior The Windows build (`aarch64-pc-windows-msvc`) fails to compile with: ``` error[E0433]: failed to resolve: use of undeclared type `FileType` --> packages\nx\src\native\watch\types.rs:128:55 ``` The `FileType` type is used inside a `#[cfg(target_os = "windows")]` block but was not imported. ## Expected Behavior The Windows build compiles successfully. The `FileType` import is scoped inside the `#[cfg(target_os = "windows")]` block (matching the existing pattern in the macOS block) so there are no unused imports on any platform. ## Related Issue(s) N/A — build breakage discovered during CI publish workflow.
1 parent 0aef1ef commit 1f5520e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/nx/src/native/watch/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub fn transform_event_to_watch_events(
124124

125125
#[cfg(target_os = "windows")]
126126
{
127+
use watchexec_events::FileType;
127128
// Skip directory events - they're handled by register_new_directory_watches
128129
if path.1.map_or(false, |ft| matches!(ft, FileType::Dir)) {
129130
return Ok(vec![]);

0 commit comments

Comments
 (0)