package-json-merge icon indicating copy to clipboard operation
package-json-merge copied to clipboard

Arrays are not combined as arrays

Open edahlseng opened this issue 8 years ago • 1 comments

When package.json files have arrays for a field (such as for contributors) the combined output is an object keyed by index, rather than an array

edahlseng avatar Sep 08 '17 22:09 edahlseng

I can confirm. In my case, if one file has the kyword arrays are combined as:

"keywords": {
    "0": "one",
    "1": "theme",
    "2": "WordPress ",
    "3": "plugin"
  },

eclectic-coding avatar Sep 01 '19 09:09 eclectic-coding