From: Chocobozzz Date: Thu, 11 Feb 2021 07:41:12 +0000 (+0100) Subject: Update stats format X-Git-Tag: v3.1.0-rc.1~160 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d93e43164a716d98cf1c84aa993824ff6d1496ff;p=github%2FChocobozzz%2FPeerTube.git Update stats format --- diff --git a/scripts/client-build-stats.ts b/scripts/client-build-stats.ts index a6085902c..70ceda975 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