Skip to content

Comments

fix(pack): use case-insensitive equality on all platforms#18682

Closed
DonIsaac wants to merge 4 commits intomainfrom
don/fix/pm-pack-case-insensitive
Closed

fix(pack): use case-insensitive equality on all platforms#18682
DonIsaac wants to merge 4 commits intomainfrom
don/fix/pm-pack-case-insensitive

Conversation

@DonIsaac
Copy link
Contributor

What does this PR do?

When checking if files should or should not be included/excluded, we currently use a case-insensitive string equality check only on linux. This PR changes bun pm pack and bun publish to always use a case-insensitive check on all platforms. This conforms to npm's behavior.

How did you verify your code works?

I've added tests.

@DonIsaac DonIsaac requested a review from dylan-conway March 31, 2025 20:51
@robobun
Copy link
Collaborator

robobun commented Mar 31, 2025

Updated 6:16 PM PT - Apr 9th, 2025

@DonIsaac, your commit a9ae300 has 1 failures in Build #14755:


🧪   try this PR locally:

bunx bun-pr 18682

strings.eqlComptime
else
strings.eqlCaseInsensitiveASCIIICheckLength;
const stringsEql = strings.eqlCaseInsensitiveASCIIICheckLength;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const stringsEql = strings.eqlCaseInsensitiveASCIIICheckLength;

let's just delete this and replace it's one usage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its just... such a long name

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.

4 participants