From 2b1f97dc45dcc2d5fb2f49db6c2227c4776b4a80 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Tue, 2 Jan 2024 07:35:20 +1100 Subject: [PATCH] feat: Fetch keywords from NPM to improve search --- scripts/updateNpm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/updateNpm.js b/scripts/updateNpm.js index 8a47665e7..25ef24980 100644 --- a/scripts/updateNpm.js +++ b/scripts/updateNpm.js @@ -40,5 +40,6 @@ async function processPackage(pkg) { const version = data.version; const date = data.time[version]; const support = data.peerDependencies?.svelte ? data.peerDependencies.svelte : 'Unknown'; - return { [pkg.npm]: { version, date, support } }; + const keywords = data.keywords; + return { [pkg.npm]: { version, date, support, keywords } }; }