mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
Fix build 2?
This commit is contained in:
@@ -42,8 +42,8 @@ export const fetchAllReleases = async () =>
|
||||
.split(/\n/)
|
||||
.map(async (line) => {
|
||||
const [commit, ref] = line.split(/ /);
|
||||
if (ref == null || !ref.startsWith('refs/tags/')) return null;
|
||||
const { version } = semver.coerce(ref.replace('refs/tags/', ''));
|
||||
if (ref == null || !ref.startsWith('refs/tags/') || commit == null) return null;
|
||||
const { version = null } = semver.coerce(ref.replace('refs/tags/', '')) ?? {};
|
||||
const date = (await simpleGit().show(['-s', '--format=%cI', commit])).trim();
|
||||
return { version, date };
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user