Skip to content

Conversation

saiichihashimoto
Copy link

This package does not currently support sorting the scripts field of a package.json when npm-run-all is a devDependency.

This PR proposes that sort-package-json should sort package.json, not create these exceptions, and revert those changes. They are unpredictable and hard to detect even with proper documentation. npm-run-all is likely not the only cli that can be concerned with script order and handling more of them isn't feasible. This has been brought up many times (#206, #220, #240, #242) and, since there are ultimately two conflicting schools of thought with no mitigation that allows both to exist, requires sort-package-json to pick one way or the other.

@saiichihashimoto
Copy link
Author

As mentioned in this comment, we won't be doing this. Closing.

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.

1 participant