Skip to content

Commit cab4ff9

Browse files
authored
fix(cli): ignore the gen folder on the dev watcher (#6232)
1 parent da57e7c commit cab4ff9

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Ignore the `gen` folder on the dev watcher.

tooling/cli/src/interface/rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ fn build_ignore_matcher(dir: &Path) -> IgnoreMatcher {
322322

323323
fn lookup<F: FnMut(FileType, PathBuf)>(dir: &Path, mut f: F) {
324324
let mut default_gitignore = std::env::temp_dir();
325-
default_gitignore.push(".tauri-dev");
325+
default_gitignore.push(".tauri");
326326
let _ = std::fs::create_dir_all(&default_gitignore);
327327
default_gitignore.push(".gitignore");
328328
if !default_gitignore.exists() {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
target/
3+
gen/
34
Cargo.lock

0 commit comments

Comments
 (0)