fix: Script types and a11y warnings (#535)

* Fix Tag.svelte a11y warnings

* Fix types in scripts

* Remove unused CardList.svelte

* Revert "Remove unused CardList.svelte"

This reverts commit acd01fd4fdb57487521de9721e175e9d8d4c72cf.

* Clearer import

* Format
This commit is contained in:
Lachlan Collins
2023-12-21 10:32:57 +11:00
committed by GitHub
parent f63fef858e
commit 9d6c7c55dc
5 changed files with 19 additions and 10 deletions

View File

@@ -13,7 +13,10 @@ const data = packagesSchema.parse(packages);
const npm = await Promise.all(
data.map((pkg) => processPackage(pkg).catch((error) => console.log(error.message)))
).then((values) => {
return values.reduce((result, value) => Object.assign(result, value), {});
return values.reduce(
(result, value) => Object.assign(result, value),
/** @type {Record<string, any>} */ ({})
);
});
writeFileSync('src/lib/data/npm.json', JSON.stringify(npm));