-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: Add filename normalizing #214
Conversation
Just saw #192, oops. |
@beeequeue yours looks like a fine solution, you also don't have merge conflicts on the branch I think? |
Thank you for doing this, this is an awesome feature. |
I'll get this merged, any chance you want to add some docs for this? |
Fixes: #30 |
🎉 |
ooo nvm this worked for us (added to the config in package.json) sweet!!! |
Yes I will open a PR in the website to add documentation |
@cheapsteak Could you confirm for me that this working as intended for you? I'm seeing some weird behaviour where it still says the files are deleted and re-added even though they have the same name... |
@beeequeue I ran into the same issue 😞 (see #30 (comment) ) |
my guess is that the problem might be here: Lines 31 to 42 in 57c71de
The file path normalization is being done inside the I think we might need to move normalization into |
@jakebolam @beeequeue #238 should fix this (no api changes) |
What kind of change does this PR introduce?
Feature
Did you add tests for your changes?
I added some tests for the normalizing, but couldn't find any way to test it further than I did. Please let me know if anything else should be added.
If relevant, link to documentation update:
TODO
Summary
Some bundles may have hashes in their filenames - this breaks comparisons since files appear to be deleted instead of modified when the hashes change.
This adds an option for normalizing these filenames to fix this iseue.
I also thought about adding an enum option, so you can easily remove hashes without having to write a new Regex for it.
e.g.
Does this PR introduce a breaking change?
No
Other information
While adding the config, I made the validators able to alter the configuration to be valid to easily parse string regexes from JSON files or CLI options.