summaryrefslogtreecommitdiff
path: root/packages/core/src/services/fileDiscoveryService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/services/fileDiscoveryService.ts')
-rw-r--r--packages/core/src/services/fileDiscoveryService.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/core/src/services/fileDiscoveryService.ts b/packages/core/src/services/fileDiscoveryService.ts
index f117813d..7531f90a 100644
--- a/packages/core/src/services/fileDiscoveryService.ts
+++ b/packages/core/src/services/fileDiscoveryService.ts
@@ -7,7 +7,7 @@
import { GitIgnoreParser, GitIgnoreFilter } from '../utils/gitIgnoreParser.js';
import { isGitRepository } from '../utils/gitUtils.js';
import * as path from 'path';
-import fg from 'fast-glob';
+import { glob, type GlobOptions } from 'glob';
export interface FileDiscoveryOptions {
respectGitIgnore?: boolean;
@@ -35,12 +35,12 @@ export class FileDiscoveryService {
async glob(
pattern: string | string[],
- options: fg.Options = {},
+ options: GlobOptions = {},
): Promise<string[]> {
- const files = await fg(pattern, {
+ const files = (await glob(pattern, {
...options,
- caseSensitiveMatch: false,
- });
+ nocase: true,
+ })) as string[];
return this.filterFiles(files);
}