mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(kit): pass resolved path to isIgnored
(#5375)
This commit is contained in:
parent
fadffbe80c
commit
6947d30f01
@ -148,5 +148,5 @@ async function existsSensitive (path: string) {
|
||||
|
||||
export async function resolveFiles (path: string, pattern: string | string[]) {
|
||||
const files = await globby(pattern, { cwd: path, followSymbolicLinks: true })
|
||||
return files.filter(p => !isIgnored(p)).map(p => resolve(path, p))
|
||||
return files.map(p => resolve(path, p)).filter(p => !isIgnored(p))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user