aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/client-build-stats.ts7
1 files changed, 5 insertions, 2 deletions
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()
20async function buildResult (path: string) { 20async function buildResult (path: string) {
21 const distFiles = await readdir(path) 21 const distFiles = await readdir(path)
22 22
23 const files: { [ name: string ]: number } = {} 23 const files: { name: string, size: number }[] = []
24 24
25 for (const file of distFiles) { 25 for (const file of distFiles) {
26 const filePath = join(path, file) 26 const filePath = join(path, file)
27 27
28 const statsResult = await stat(filePath) 28 const statsResult = await stat(filePath)
29 files[file] = statsResult.size 29 files.push({
30 name: file,
31 size: statsResult.size
32 })
30 } 33 }
31 34
32 return files 35 return files