Skip to content

Commit

Permalink
Ensure predictable sequence of output
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Sep 13, 2024
1 parent 73fe5f7 commit b6e9b32
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 172 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
"devDependencies": {
"@rollup/plugin-replace": "5",
"@rollup/plugin-swc": "^0.4.0",
"@swc/core": "^1.7.11",
"@swc/core": "1.7.26",
"@types/node": "22.5.4",
"assert": "^2.0.0",
"mocha": "10.7.3",
"prettier": "3.3.3",
"rollup": "4",
"yarn": "1.22.19"
"rollup": "4.21.3",
"yarn": "1.22.22"
},
"resolutions": {
"glob": "9"
Expand Down
7 changes: 6 additions & 1 deletion src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export function engine(config: any = {engine: 'V8'}) {

chat(config.files.length + ' files found');

// Ensure predictable sequence of output
if (config.files.length > 1) {
config.voidAsync = config.voidAsync || config.outputMatch || config.output;
}

step(config);

config.files
Expand Down Expand Up @@ -658,5 +663,5 @@ function getFilePaths(conf) {
filesToInclude = filesToInclude.filter((el) => !filesToExclude.includes(el));
}

return filesToInclude;
return filesToInclude.sort();
}
Loading

0 comments on commit b6e9b32

Please sign in to comment.