chore: bump dependencies, added script to download live2d sdk

This commit is contained in:
Neko Ayaka
2024-12-02 13:55:49 +08:00
parent 72f41d8bde
commit 330c6c0008
20 changed files with 4631 additions and 5063 deletions
+18
View File
@@ -0,0 +1,18 @@
import { stat } from 'node:fs/promises'
export async function exists(path: string) {
try {
await stat(path)
return true
}
catch (error) {
if (!(error instanceof Error))
throw error
if (!('code' in error))
throw error
if (error.code !== 'ENOENT')
throw error
return false
}
}