feat: adds pkg sort command#7954
Conversation
|
whoa, this is a large feature. how is it sorting things? how can the order be customized? was there an RFC or public discussion anywhere? |
|
ok, so it doesn't seem like this has any customization capability, but many hundreds of thousands of projects likely have orderings this would break:
and i could go on for pages. iow, by shipping this, even opt-in, without customizability, npm will be opening the floodgates of custom ordering requests (i speak from experience maintaining multiple eslint plugins that handle orderings). I strongly urge caution and slowness with a feature like this. |
|
@ljharb this is in draft status. Many of these questions would be answered by the docs that we have yet to add to the PR. |
|
fair, it wasn't in draft until after my comments :-) nothing in the code suggests that it's customizable tho, which seems like a requirement to me |
|
im gonna close this out for now |
adds
npm pkg sortcommand to sort package.json fields