Temporarily keep the mcdoc dependencies

This commit is contained in:
Misode
2024-11-27 01:03:43 +01:00
parent 8415340557
commit 145bced7d2
2 changed files with 4 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
import type { ExternalFileSystem } from '@spyglassmc/core'
import * as zip from '@zip.js/zip.js'
import type { Identifier, NbtTag, Random } from 'deepslate'
import { Matrix3, Matrix4, NbtByte, NbtCompound, NbtDouble, NbtInt, NbtList, NbtString, Vector } from 'deepslate'
@@ -636,12 +635,3 @@ export function safeJsonParse(text: string): any {
return undefined
}
}
export async function clearFolder(fs: ExternalFileSystem, uri: string) {
const entries = await fs.readdir(uri)
return Promise.all(entries.map(async e => {
if (e.name !== uri) {
return await fs.unlink(e.name)
}
}))
}