mirror of
https://github.com/tcgdex/compiler.git
synced 2025-07-30 16:00:45 +00:00
Include OpenAPI (#19)
* done Signed-off-by: Avior <github@avior.me> * Fixed no such file or directory error Signed-off-by: Avior <github@avior.me> * Fixed problem * Fixed fix
This commit is contained in:
@ -32,7 +32,7 @@ const globCache: Record<string, Array<string>> = {}
|
||||
export async function smartGlob(query: string): Promise<Array<string>> {
|
||||
if (!globCache[query]) {
|
||||
globCache[query] = await new Promise((res) => {
|
||||
glob(query, (err, matches) => res(matches))
|
||||
glob(query, (_, matches) => res(matches))
|
||||
})
|
||||
}
|
||||
return globCache[query]
|
||||
|
Reference in New Issue
Block a user