mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
* cleanup scripts * Move helpers to package * Fixes scripts * Fix scripts * Formatting * Fix helpers import paths * Remove lucide-figma * Rename helpers package * Fix build * formatting * Adjust main build-icons file * Add export casing * Adds `exportModuleNameCasing` fro lab project * format files * Bump package version @lucide/build-icons * Revert changes in icons * Revert changes in PR yml * Fix lint issues * Fix site build * fix lint errors * Attempt fix linting * Fix lint errors
24 lines
778 B
TypeScript
24 lines
778 B
TypeScript
import packageData from '../../../data/packageData.json';
|
|
import thirdPartyPackages from '../../../data/packageData.thirdParty.json';
|
|
import fetchPackages from '../../../lib/fetchPackages';
|
|
|
|
export default {
|
|
async load() {
|
|
const packages = await fetchPackages();
|
|
|
|
return {
|
|
packages: packages
|
|
.filter((p) => p?.name != null && p.name in packageData)
|
|
.map((pData) => ({
|
|
...pData,
|
|
...packageData[pData.name],
|
|
documentation: `/guide/packages/${pData.name}`,
|
|
source: `https://github.com/lucide-icons/lucide/tree/main/packages/${pData.name}`,
|
|
icon: `/framework-logos/${packageData[pData.name].icon}.svg`,
|
|
}))
|
|
.sort((a, b) => a.order - b.order),
|
|
thirdPartyPackages,
|
|
};
|
|
},
|
|
};
|