diff --git a/.changes/mobile-dev-watcher-ignore-gen.md b/.changes/mobile-dev-watcher-ignore-gen.md new file mode 100644 index 000000000..b0dc17e7c --- /dev/null +++ b/.changes/mobile-dev-watcher-ignore-gen.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Ignore the `gen` folder on the dev watcher. diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 1b6a1e53c..9890aeb9e 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -322,7 +322,7 @@ fn build_ignore_matcher(dir: &Path) -> IgnoreMatcher { fn lookup(dir: &Path, mut f: F) { let mut default_gitignore = std::env::temp_dir(); - default_gitignore.push(".tauri-dev"); + default_gitignore.push(".tauri"); let _ = std::fs::create_dir_all(&default_gitignore); default_gitignore.push(".gitignore"); if !default_gitignore.exists() { diff --git a/tooling/cli/tauri-dev-watcher.gitignore b/tooling/cli/tauri-dev-watcher.gitignore index 130e8431e..c4b62fb4b 100644 --- a/tooling/cli/tauri-dev-watcher.gitignore +++ b/tooling/cli/tauri-dev-watcher.gitignore @@ -1,3 +1,4 @@ node_modules/ target/ +gen/ Cargo.lock