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

feat: sort and quote yarn lock keys according to yarn rules #5724

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

wraithgar
Copy link
Member

This PR adjusts the logic used for sorting keys when writing yarn.lock to be more in line with Yarn's own rules, avoiding unnecessary diffs and confusion.

This adds a commit to #5659

Please squash

@wraithgar wraithgar requested a review from a team as a code owner October 19, 2022 18:47
@wraithgar wraithgar changed the title feat: sort and quote keys according to Yarn's rules when writing yarn.lock feat(yarn-lock): sort and quote keys according to yarn rules Oct 19, 2022
@wraithgar wraithgar force-pushed the update-yarn-lock-properly branch from 65d930a to 9f7ebbf Compare October 19, 2022 18:52
@wraithgar wraithgar changed the title feat(yarn-lock): sort and quote keys according to yarn rules feat: sort and quote yarn lock keys according to yarn rules Oct 19, 2022
@wraithgar wraithgar force-pushed the update-yarn-lock-properly branch from 9f7ebbf to 1c68058 Compare October 19, 2022 18:58
@wraithgar wraithgar force-pushed the update-yarn-lock-properly branch from 1c68058 to eae8552 Compare October 19, 2022 19:01
@lukekarrys lukekarrys merged commit 64a19d0 into latest Oct 19, 2022
@lukekarrys lukekarrys deleted the update-yarn-lock-properly branch October 19, 2022 19:09
@shalvah
Copy link
Contributor

shalvah commented Oct 20, 2022

@wraithgar I see this was released, but the yarn-lock file on latest has none of the changes or commits. Was it removed?

@wraithgar
Copy link
Member Author

9.0.0 is not tagged as latest yet

@cachius
Copy link

cachius commented Oct 26, 2022

Re:tagged as latest - The strategy is explained here

Wednesday Nov. 9th (General Availability) ...
[email protected] will be set to the latest dist-tag (becoming the latest, maintained version of npm)


@wraithgar Are you sure it is in the source, though? Visiting 64a19d0 yields the warning

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Not sure if this relates to the tagging.

@wraithgar
Copy link
Member Author

You're right, something funky happened here during the release, cc @lukekarrys

@wraithgar wraithgar restored the update-yarn-lock-properly branch October 26, 2022 14:30
@wraithgar
Copy link
Member Author

I had the branch locally still, pushed and made a pr #5751

@nlf nlf deleted the update-yarn-lock-properly branch October 26, 2022 16:17
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