mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(cli): ignore the gen folder on the dev watcher (#6232)
This commit is contained in:
committed by
GitHub
parent
da57e7c087
commit
cab4ff95b9
6
.changes/mobile-dev-watcher-ignore-gen.md
Normal file
6
.changes/mobile-dev-watcher-ignore-gen.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Ignore the `gen` folder on the dev watcher.
|
||||
@@ -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,3 +1,4 @@
|
||||
node_modules/
|
||||
target/
|
||||
gen/
|
||||
Cargo.lock
|
||||
|
||||
Reference in New Issue
Block a user