-
Notifications
You must be signed in to change notification settings - Fork 90
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
Another bug wrt sort pre/post scripts with colon together #332
Comments
PRs welcome! |
After looking into this further is shows that 2.12.0 works as I would expect it. The change of #330 changed the behavior. The question is what is the correct/intended behavior. I think the expected order in
is quite special and a generic tool like sort-package-json should support the common case (see my expectations from above) out of the box. |
Ok than I propose #333 to revert the recent changes. |
@chouchouji thoughts? |
I check the issue and pr. The result of sorting pre/post scripts you expected is quite different with #307. I am not sure that which is better? Maybe we can take a discussion. |
Similar to #307
Sorted input with extra blank lines for clarification:
Output with
npx [email protected]
:The text was updated successfully, but these errors were encountered: