diff --git a/project/src/utils/FileSystem.ts b/project/src/utils/FileSystem.ts index 5f7c9859..0bced59b 100644 --- a/project/src/utils/FileSystem.ts +++ b/project/src/utils/FileSystem.ts @@ -363,6 +363,7 @@ export class FileSystem { .map((dirent) => path.join(dirent.parentPath, dirent.name).replace(/\\/g, "/")) // Optionally remove the input directory from the path. .map((dir) => (includeInputDir ? dir : dir.replace(directoryNormalized, ""))) + .sort() ); } } diff --git a/project/src/utils/FileSystemSync.ts b/project/src/utils/FileSystemSync.ts index e559fa98..5b5ddfec 100644 --- a/project/src/utils/FileSystemSync.ts +++ b/project/src/utils/FileSystemSync.ts @@ -353,6 +353,7 @@ export class FileSystemSync { .map((dirent) => path.join(dirent.parentPath, dirent.name).replace(/\\/g, "/")) // Optionally remove the input directory from the path. .map((dir) => (includeInputDir ? dir : dir.replace(directoryNormalized, ""))) + .sort() ); } }