Errors
Some checks failed
On Push Deploy / deploy (push) Has been cancelled

This commit is contained in:
Johnny322
2026-02-08 16:12:22 +01:00
parent e50dd7f8b2
commit 10dc413c72

View File

@@ -25,20 +25,26 @@ type GameMap = Record<
} }
> >
const globEager = (pattern: string) =>
(import.meta.glob(pattern, { eager: true, import: 'default' } as any) as unknown) as Record<
string,
string
>
const songFiles = { const songFiles = {
...globEager('./Data/*/*/Songs/*.mp3'), ...(import.meta.glob('./Data/*/*/Songs/*.mp3', {
...globEager('./Data/*/*/songs/*.mp3') eager: true,
import: 'default'
} as any) as unknown as Record<string, string>),
...(import.meta.glob('./Data/*/*/songs/*.mp3', {
eager: true,
import: 'default'
} as any) as unknown as Record<string, string>)
} }
const answerFiles = { const answerFiles = {
...globEager('./Data/*/*/Answers/*.mp3'), ...(import.meta.glob('./Data/*/*/Answers/*.mp3', {
...globEager('./Data/*/*/answers/*.mp3') eager: true,
import: 'default'
} as any) as unknown as Record<string, string>),
...(import.meta.glob('./Data/*/*/answers/*.mp3', {
eager: true,
import: 'default'
} as any) as unknown as Record<string, string>)
} }
const getParts = (path: string) => { const getParts = (path: string) => {