make compat with windows: sze reporting

This commit is contained in:
bitterpanda 2025-12-03 16:27:25 +01:00
parent 3a1d9c25af
commit 6fa648d6ca

View file

@ -37,7 +37,7 @@ if (!target) {
const totalBuildTime = (performance.now() - startBuildTime)/1000; const totalBuildTime = (performance.now() - startBuildTime)/1000;
const totalSizeInMb = (await stat("./dist/safe-chain")).size / (1024*1024); const totalSizeInMb = (await stat("./dist/safe-chain" + (process.platform === "win32" ? ".bin" : ""))).size / (1024*1024);
console.log(`🏁 Finished build in ${totalBuildTime.toFixed(2)}s, total build size: ${totalSizeInMb.toFixed(2)}MB`); console.log(`🏁 Finished build in ${totalBuildTime.toFixed(2)}s, total build size: ${totalSizeInMb.toFixed(2)}MB`);
})(); })();