Skip to content

Commit

Permalink
fix(cli): ignore the gen folder on the dev watcher (#6232)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Feb 9, 2023
1 parent da57e7c commit cab4ff9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/mobile-dev-watcher-ignore-gen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---

Ignore the `gen` folder on the dev watcher.
2 changes: 1 addition & 1 deletion tooling/cli/src/interface/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 1 addition & 0 deletions tooling/cli/tauri-dev-watcher.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
target/
gen/
Cargo.lock

0 comments on commit cab4ff9

Please sign in to comment.