diff --git a/lib/workers/repository/extract/__snapshots__/file-match.spec.ts.snap b/lib/workers/repository/extract/__snapshots__/file-match.spec.ts.snap index c29ace47acfde1..d63d4ee3d36530 100644 --- a/lib/workers/repository/extract/__snapshots__/file-match.spec.ts.snap +++ b/lib/workers/repository/extract/__snapshots__/file-match.spec.ts.snap @@ -26,14 +26,14 @@ Array [ exports[`workers/repository/extract/file-match getMatchingFiles() deduplicates 1`] = ` Array [ - "package.json", "frontend/package.json", + "package.json", ] `; exports[`workers/repository/extract/file-match getMatchingFiles() returns npm files 1`] = ` Array [ - "package.json", "frontend/package.json", + "package.json", ] `; diff --git a/lib/workers/repository/extract/file-match.ts b/lib/workers/repository/extract/file-match.ts index 91e4649b0be21e..0c4f1234cc35d2 100644 --- a/lib/workers/repository/extract/file-match.ts +++ b/lib/workers/repository/extract/file-match.ts @@ -61,5 +61,5 @@ export async function getMatchingFiles( ); } // filter out duplicates - return [...new Set(matchedFiles)]; + return [...new Set(matchedFiles)].sort(); }