@@ -10,7 +10,7 @@ import { text as stream2text } from "node:stream/consumers";
10
10
import url from "node:url" ;
11
11
import resolveTimeout from "promise-resolve-timeout" ;
12
12
import { exit } from "specialist" ;
13
- import readdir from "tiny-readdir-glob-gitignore " ;
13
+ import readdir from "tiny-readdir-glob" ;
14
14
import zeptomatchEscape from "zeptomatch-escape" ;
15
15
import zeptomatchIsStatic from "zeptomatch-is-static" ;
16
16
import type { ContextOptions , FormatOptions , FunctionMaybe , Key , LogLevel , Options , PrettierConfigWithOverrides , PrettierPlugin } from "./types.js" ;
@@ -87,13 +87,11 @@ async function getFoldersChildrenPaths(foldersPaths: string[]): Promise<string[]
87
87
return childrenPaths ;
88
88
}
89
89
90
- function getGlobPaths ( rootPath : string , globs : string [ ] , ignoreFiles : string [ ] , withNodeModules : boolean ) {
90
+ function getGlobPaths ( rootPath : string , globs : string [ ] , withNodeModules : boolean ) {
91
91
return readdir ( globs , {
92
92
cwd : rootPath ,
93
93
followSymlinks : false ,
94
94
ignore : `**/{.git,.sl,.svn,.hg,.DS_Store,Thumbs.db${ withNodeModules ? "" : ",node_modules" } }` ,
95
- ignoreFiles,
96
- ignoreFilesFindAbove : false ,
97
95
} ) ;
98
96
}
99
97
@@ -186,7 +184,6 @@ const getStdin = once(async (): Promise<string | undefined> => {
186
184
async function getTargetsPaths (
187
185
rootPath : string ,
188
186
globs : string [ ] ,
189
- ignoreFiles : string [ ] ,
190
187
withNodeModules : boolean ,
191
188
) : Promise < [ string [ ] , string [ ] , Record < string , string [ ] > , string [ ] , string [ ] ] > {
192
189
const targetFiles : string [ ] = [ ] ;
@@ -207,7 +204,7 @@ async function getTargetsPaths(
207
204
}
208
205
}
209
206
210
- const result = await getGlobPaths ( rootPath , targetGlobs , ignoreFiles , withNodeModules ) ;
207
+ const result = await getGlobPaths ( rootPath , targetGlobs , withNodeModules ) ;
211
208
const filesPaths = [ ...targetFiles , ...result . files ] ;
212
209
const filesNames = [ ...targetFilesNames , ...result . filesFoundNames ] ;
213
210
const filesNamesToPaths = result . filesFoundNamesToPaths ;
0 commit comments