mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 02:17:31 +00:00
feat(watcher): ignore mobile/monorepo build folders while keeping Pods live-watched (#28494)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user