mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
Fix build 3
This commit is contained in:
@@ -42,7 +42,9 @@ export const fetchAllReleases = async () =>
|
||||
.split(/\n/)
|
||||
.map(async (line) => {
|
||||
const [commit, ref] = line.split(/ /);
|
||||
if (ref == null || !ref.startsWith('refs/tags/') || commit == null) return null;
|
||||
if (ref == null || !ref.startsWith('refs/tags/') || commit == null) {
|
||||
return { version: null, date: 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