diff --git a/packages/kit/src/resolve.ts b/packages/kit/src/resolve.ts index 1d78309ef8..d94065a615 100644 --- a/packages/kit/src/resolve.ts +++ b/packages/kit/src/resolve.ts @@ -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)) }