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

This commit is contained in:
Lucas Fernandes Nogueira
2023-02-09 09:50:33 -08:00
committed by GitHub
parent da57e7c087
commit cab4ff95b9
3 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Ignore the `gen` folder on the dev watcher.

View File

@@ -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() {

View File

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