Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 22, 2024
1 parent f9aa688 commit d12466b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Source/Function/Merge/Into.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import type Interface from "../../Interface/Merge/Into.js";
*
*/
export default (await import("deepmerge-ts")).deepmergeIntoCustom({
// mergeOthers(m_target, values, utils, meta) {
// // don't merge arrays only keep entryPoints
// },
mergeArrays(...[_Target, Value, Util, Meta]) {
if (Meta?.key !== "entryPoints") {
_Target.value = Value.flatMap((Value) => Value);
}

return Util.actions.defaultMerge;
},
}) satisfies Interface as Interface;
2 changes: 1 addition & 1 deletion Target/Function/Merge/Into.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
var e=(await import("deepmerge-ts")).deepmergeIntoCustom({});export{e as default};
var n=(await import("deepmerge-ts")).deepmergeIntoCustom({mergeArrays(...[e,t,r,a]){return a?.key!=="entryPoints"&&(e.value=t.flatMap(f=>f)),r.actions.defaultMerge}});export{n as default};

0 comments on commit d12466b

Please sign in to comment.