Jelajahi Sumber

fix(cli): ignore the `gen` folder on the dev watcher (#6232)

Lucas Fernandes Nogueira 2 tahun lalu
induk
melakukan
cab4ff95b9

+ 6 - 0
.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.

+ 1 - 1
tooling/cli/src/interface/rust.rs

@@ -322,7 +322,7 @@ fn build_ignore_matcher(dir: &Path) -> IgnoreMatcher {
 
 fn lookup<F: FnMut(FileType, PathBuf)>(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() {

+ 1 - 0
tooling/cli/tauri-dev-watcher.gitignore

@@ -1,3 +1,4 @@
 node_modules/
 target/
+gen/
 Cargo.lock