diff --git a/tools/generate-imports.mjs b/tools/generate-imports.mjs index 0e076c69e25ff4..075a218ffe7b9b 100644 --- a/tools/generate-imports.mjs +++ b/tools/generate-imports.mjs @@ -93,6 +93,9 @@ export async function getManagerHash(managerName) { (fileName) => minimatch(fileName, '*.+(snap|spec.ts)', { matchBase: true }) ); + // sort files in case glob order changes + files.sort(); + for (const fileAddr of files) { const hash = await getFileHash(fileAddr); hashes.push(hash);