UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 330 B
import e from"node:fs/promises";import t from"node:path";const n=async n=>{let r=0,i=async n=>{let a=await e.stat(n);if(a.isFile())r+=a.size;else if(a.isDirectory()){let r=await e.readdir(n);await Promise.all(r.map(e=>i(t.join(n,e))))}};return await i(n),r};export{n as default}; //# sourceMappingURL=calculate-outdir-size.mjs.map