mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-09 12:47:44 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user