1 import { registerTSPaths } from '../server/helpers/register-ts-paths'
4 import { readdir, stat } from 'fs-extra'
5 import { join } from 'path'
6 import { root } from '@shared/core-utils'
8 async function run () {
10 app: await buildResult(join(root(), 'client', 'dist', 'en-US')),
11 embed: await buildResult(join(root(), 'client', 'dist', 'standalone', 'videos'))
14 console.log(JSON.stringify(result))
18 .catch(err => console.error(err))
20 async function buildResult (path: string) {
21 const distFiles = await readdir(path)
23 const files: { name: string, size: number }[] = []
25 for (const file of distFiles) {
26 const filePath = join(path, file)
28 const statsResult = await stat(filePath)
31 size: statsResult.size