You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like the format command, but I would like more control on what it does. For example, my package.json has a unpkg and jsdelivr field that I would like to stay close together, or I would like to have the main field at the top.
Another way of putting this is; maybe some wants to only reorder nested field like dependencies without reordering the whole package.json.
Suggested Solution
Managing all the possibilities through CLI options would be too much. Maybe some kind of configuration file (.syncpackrc ?) could solve this. Something like what fixpack is doing is good.
Alternatively, I wonder if a template file could be a good idea.
Help Needed
Is this something you would consider adding or is this out of scope for this CLI ?
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Sorry for the wait @GMartigny, I thought I'd replied to this but I hadn't.
It's likely some kind of config file or property in package.json will come soon and luckily the values used for sorting are already extracted internally in /src/constants.ts:
Description
I like the
format
command, but I would like more control on what it does. For example, mypackage.json
has aunpkg
andjsdelivr
field that I would like to stay close together, or I would like to have themain
field at the top.Another way of putting this is; maybe some wants to only reorder nested field like
dependencies
without reordering the wholepackage.json
.Suggested Solution
Managing all the possibilities through CLI options would be too much. Maybe some kind of configuration file (
.syncpackrc
?) could solve this. Something like what fixpack is doing is good.Alternatively, I wonder if a template file could be a good idea.
Help Needed
Is this something you would consider adding or is this out of scope for this CLI ?
Thanks for your time.
The text was updated successfully, but these errors were encountered: