feat(watcher): ignore mobile/monorepo build folders while keeping Pods live-watched (#28494)

This commit is contained in:
Dat
2026-11-11 13:33:30 -08:00
committed by GitHub
parent dd263743c3
commit 4f6d182dde
2 changed files with 16 additions and 2 deletions
+12 -1
View File
@@ -5,7 +5,18 @@ import { checkIgnoredPaths } from './source-control/check-ignored-paths'
import type { GitRuntimeOptions } from './git-runtime-options'
// Offer common dependency/build folders when unignored content saturates status.
const KNOWN_HUGE_FOLDER_NAMES = ['node_modules', '.next', 'dist', 'build', 'target', 'vendor']
const KNOWN_HUGE_FOLDER_NAMES = [
'node_modules',
'.next',
'dist',
'build',
'target',
'vendor',
'.dart_tool',
'.gradle',
'.turbo',
'Pods'
]
export async function findKnownHugeFolderPathsToIgnore(
worktreePath: string,
@@ -8,7 +8,10 @@ export const WATCHER_IGNORE_DIRS: string[] = [
'.cache',
'target',
'.venv',
'__pycache__'
'__pycache__',
'.dart_tool',
'.gradle',
'.turbo'
]
// FSEvents rejects all exclusions above eight paths; regex filtering covers the remaining names at every depth.