fix(kit): pass resolved path to isIgnored (#5375)

This commit is contained in:
Daniel Roe 2022-06-10 13:28:48 +01:00 committed by GitHub
parent fadffbe80c
commit 6947d30f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,5 +148,5 @@ async function existsSensitive (path: string) {
export async function resolveFiles (path: string, pattern: string | string[]) { export async function resolveFiles (path: string, pattern: string | string[]) {
const files = await globby(pattern, { cwd: path, followSymbolicLinks: true }) 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))
} }