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 pre/post scripts with colon together #330

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

chouchouji
Copy link
Contributor

@chouchouji chouchouji commented Jan 11, 2025

Issue

close #307

Test

image

@chouchouji
Copy link
Contributor Author

@keithamus I create a pr, please review it if you have time.

Copy link
Owner

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

The code looks reasonable, but it would be great to see some tests that exercise this functionality, to ensure we don't regress.

@chouchouji
Copy link
Contributor Author

The code looks reasonable, but it would be great to see some tests that exercise this functionality, to ensure we don't regress.

Thanks for your review. I have added test case.

Copy link
Owner

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this @chouchouji! Let's ship it!

@keithamus keithamus merged commit eb49298 into keithamus:main Jan 13, 2025
4 checks passed
Copy link

🎉 This PR is included in version 2.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chouchouji
Copy link
Contributor Author

Thanks for your work on this @chouchouji! Let's ship it!

Thanks!

@jfairley
Copy link
Contributor

I would've never expected this to be the sort order. What is the significance of the numbered scripts, or rather what recognizes them (npm core, npm-run-all2, something else)? I'm not familiar with this pattern.

This change messes up patterns I use often with alphas after the colon like:

Screenshot 2025-01-22 at 4 59 35 PM

👎🏼

prestart:prod should be aligned with start:prod, not 3 lines away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sort pre/post scripts with colon together
3 participants