Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stable ordering of files #27

Merged
merged 2 commits into from
Nov 9, 2023
Merged

fix: stable ordering of files #27

merged 2 commits into from
Nov 9, 2023

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Nov 9, 2023

Apparently on windows fs.readdir does not provide a sorted list of file entries. This PR fixes the filesFromPaths to always provide a stable ordering of files by default. This can be disabled by passing sort: false in the options.

@olizilla
Copy link
Contributor

olizilla commented Nov 9, 2023

For posterity; the issue that caused concern here: nodejs/node#3232

Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✨

src/index.js Outdated Show resolved Hide resolved
Co-authored-by: Oli Evans <oli.evans@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants