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 regardless of devDependencies #244

Closed
wants to merge 1 commit into from
Closed

feat: sort regardless of devDependencies #244

wants to merge 1 commit into from

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