Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update packages/kit/src/resolve.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Aug 1, 2022
1 parent 4e7d9de commit 2a6f905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ async function isDirectory (path: string) {
}

export async function resolveFiles (path: string, pattern: string | string[], opts: { followSymbolicLinks?: boolean } = {}) {
const files = await globby(pattern, { cwd: path, followSymbolicLinks: opts?.followSymbolicLinks || true })
const files = await globby(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true })
return files.map(p => resolve(path, p)).filter(p => !isIgnored(p)).sort()
}

0 comments on commit 2a6f905

Please sign in to comment.