Skip to content

Commit 0b57d89

Browse files
authored
fix: run bundle size check on MacOS (#205)
1 parent 17972e5 commit 0b57d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/check_bundle_size.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!OUT_DIR) {
1313
const files = []
1414
for await (const path of $`find ${OUT_DIR} -type f ! -name '*.map'`.lines()) {
1515
if (!path) continue
16-
const size = Number((await $`stat -c %s ${path}`.quiet()).text().trim())
16+
const size = Number((await $`cat ${path} | wc -c`.quiet()).text().trim())
1717
const compressedSize = Number((await $`gzip -9c ${path} | wc -c`.quiet()).text().trim())
1818
files.push({
1919
path,

0 commit comments

Comments
 (0)