diff --git a/scripts/add.js b/scripts/add.js index b7e0277..2e1c8ab 100644 --- a/scripts/add.js +++ b/scripts/add.js @@ -99,7 +99,7 @@ const main = async () => { if (index !== -1) { console.log(`Updated existing entry (${JSON.stringify(entry)})`); - indexJSON[index] = entry; + indexJSON[index] = {...indexJSON[index], ...entry}; if (entry.path && entry.path !== destination) { try {