File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ export const STOP_MARKER = '[' + 'END]'
22export const FIND_FILES_MARKER = '[' + 'FIND_FILES_PLEASE]'
33export const EXISTING_CODE_MARKER = '[[**REPLACE_WITH_EXISTING_CODE**]]'
44
5- export const DEFAULT_IGNORED_FILES = [
5+ export const DEFAULT_IGNORED_PATHS = [
66 '.git' ,
77 '.env' ,
88 '.env.*' ,
9- 'env' ,
10- 'ENV' ,
119 '*.min.*' ,
1210 'node_modules' ,
1311 'venv' ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import path from 'path'
55import * as ignore from 'ignore'
66import { sortBy } from 'lodash'
77
8- import { DEFAULT_IGNORED_FILES } from './constants'
8+ import { DEFAULT_IGNORED_PATHS } from './constants'
99import { DirectoryNode , FileTreeNode } from './util/file'
1010
1111export const DEFAULT_MAX_FILES = 10_000
@@ -15,7 +15,7 @@ export function getProjectFileTree(
1515 { maxFiles = DEFAULT_MAX_FILES } : { maxFiles ?: number } = { }
1616) : FileTreeNode [ ] {
1717 const defaultIgnore = ignore . default ( )
18- for ( const pattern of DEFAULT_IGNORED_FILES ) {
18+ for ( const pattern of DEFAULT_IGNORED_PATHS ) {
1919 defaultIgnore . add ( pattern )
2020 }
2121
@@ -194,7 +194,7 @@ export function getLastReadFilePaths(
194194
195195export function isFileIgnored ( filePath : string , projectRoot : string ) : boolean {
196196 const defaultIgnore = ignore . default ( )
197- for ( const pattern of DEFAULT_IGNORED_FILES ) {
197+ for ( const pattern of DEFAULT_IGNORED_PATHS ) {
198198 defaultIgnore . add ( pattern )
199199 }
200200
You can’t perform that action at this time.
0 commit comments