Skip to content

Commit

Permalink
Explicitly specify array merge as concat
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed May 29, 2023
1 parent 02ddd01 commit 9102291
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,14 @@ function initMetadata(options = {}) {
current = current[k]
}
debug('Adding metadata from file "%s" at key "%s": %O', path, key, parsed)
Object.assign(metadata, merge(metadata, newMeta))
Object.assign(
metadata,
merge(metadata, newMeta, {
arrayMerge(target, src) {
return target.concat(src)
}
})
)
if (delete files[path]) {
debug('Removed metadata file at "%s"', path)
}
Expand Down

0 comments on commit 9102291

Please sign in to comment.