Skip to content

Commit

Permalink
fix: avoid using .toSorted to improve node compatibility, close #117
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 8, 2025
1 parent 42d3f31 commit c7ed332
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,12 @@ export async function globMatchedFiles(
): Promise<MatchedFile[]> {
console.log(MARK_INFO, 'Globing matched files')

const files = (await configArrayFindFiles({
basePath,
configs: buildConfigArray(rawConfigs, basePath),
})).toSorted()
const files = [
...await configArrayFindFiles({
basePath,
configs: buildConfigArray(rawConfigs, basePath),
}),
].sort()

return files
.map((filepath) => {
Expand Down

0 comments on commit c7ed332

Please sign in to comment.