Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Update stats format

Chocobozzzd93e43164a71
diff --git a/scripts/client-build-stats.ts b/scripts/client-build-stats.ts
index a6085902cb..70ceda975a 100644
--- a/scripts/client-build-stats.ts
+++ b/scripts/client-build-stats.ts
@@ -20,13 +20,16 @@ run()
async function buildResult (path: string) {
const distFiles = await readdir(path)
- const files: { [ name: string ]: number } = {}
+ const files: { name: string, size: number }[] = []
for (const file of distFiles) {
const filePath = join(path, file)
const statsResult = await stat(filePath)
- files[file] = statsResult.size
+ files.push({
+ name: file,
+ size: statsResult.size
+ })
}
return files