fix: remove unnecessary braces from favicon glob pattern

The pattern **/{favicon}.{ico,png,svg,jpg,jpeg,webp} doesn't work with
the npm glob package. Changed to **/favicon.{ico,png,svg,jpg,jpeg,webp}
which correctly matches favicon files with any of the specified extensions.
This commit is contained in:
Dax Raad
2026-02-19 13:19:06 -05:00
parent 01b5e6487c
commit 3e0dc15b59

View File

@@ -263,7 +263,7 @@ export namespace Project {
if (input.vcs !== "git") return if (input.vcs !== "git") return
if (input.icon?.override) return if (input.icon?.override) return
if (input.icon?.url) return if (input.icon?.url) return
const matches = await Glob.scan("**/{favicon}.{ico,png,svg,jpg,jpeg,webp}", { const matches = await Glob.scan("**/favicon.{ico,png,svg,jpg,jpeg,webp}", {
cwd: input.worktree, cwd: input.worktree,
absolute: true, absolute: true,
include: "file", include: "file",