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'm using git-json-merge to merge package.json files where dependencies are typically sorted alphabetically. It would be useful to have the merge preserve the relative order of items where possible, i.e.:
Base:
{
"a": 1,
"c": 3,
"e": 5
}
Left change:
{
"a": 1,
"b": 2,
"c": 3,
"e": 5
}
Right change:
{
"a": 1,
"c": 3,
"d": 4,
"e": 5
}
Expected output:
{
"a": 1,
"b": 2,
"c": 3,
"d": 4,
"e": 5
}
Actual output:
{
"a": 1,
"c": 3,
"e": 5,
"d": 4,
"b": 2
}
The text was updated successfully, but these errors were encountered:
I'm using
git-json-merge
to mergepackage.json
files where dependencies are typically sorted alphabetically. It would be useful to have the merge preserve the relative order of items where possible, i.e.:Base:
Left change:
Right change:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: