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: lifecycle buildindex sort #6568

Merged
merged 2 commits into from May 20, 2023
Merged

Conversation

2239559319
Copy link
Contributor

when I use pnpm with workspace, I found that the execution order of lifecycle script is wrong. When the maximum value of buildIndex is greater than 10, this problem will be caused. The reason is that when sorting buildIndex, because the type of buildIndex is number, no compare function is added, resulting in disordered order after sorting.

In the figure below, the following one is expected

image

@2239559319 2239559319 requested a review from zkochan as a code owner May 20, 2023 09:18
@welcome
Copy link

welcome bot commented May 20, 2023

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan zkochan merged commit 6ce3424 into pnpm:main May 20, 2023
7 of 8 checks passed
@welcome
Copy link

welcome bot commented May 20, 2023

Congrats on merging your first pull request! 🎉🎉🎉

zkochan pushed a commit that referenced this pull request May 20, 2023
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.

None yet

2 participants