style: log when large file is removed

This commit is contained in:
MDLeom 2024-10-28 07:36:01 +00:00
parent 8cb1b7f724
commit f339c1f171
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ const f = async () => {
await Promise.all(files.map(async (filename) => {
const { size } = await stat(join(publicPath, filename))
if (size >= (25 * 1024 * 1024)) {
console.log(`${filename} is more than 25MiB, deleting...`)
await rm(join(publicPath, filename), { force: true })
}
}))