Skip to content

Commit 405da88

Browse files
authored
ref(build): replace local hole-punch script with binpunch package (#246)
## Summary - Replace the local `script/hole-punch.ts` with the published [`binpunch`](https://www.npmjs.com/package/binpunch) npm package ([source](https://github.com/BYK/binpunch)) - Delete `script/hole-punch.ts` and `test/lib/hole-punch.test.ts` (tests now live in the package repo) - Remove the `hole-punch` npm script from `package.json` The build behavior is unchanged — `script/build.ts` still calls `processBinary()` to zero unused ICU data entries before gzip compression.
1 parent 02d192f commit 405da88

File tree

5 files changed

+5
-1180
lines changed

5 files changed

+5
-1180
lines changed

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"dev": "bun run src/bin.ts",
1414
"build": "bun run script/build.ts --single",
1515
"build:all": "bun run script/build.ts",
16-
"hole-punch": "bun run script/hole-punch.ts",
1716
"bundle": "bun run script/bundle.ts",
1817
"typecheck": "tsc --noEmit",
1918
"lint": "bunx ultracite check",
@@ -38,6 +37,7 @@
3837
"@types/node": "^22",
3938
"@types/qrcode-terminal": "^0.12.2",
4039
"@types/semver": "^7.7.1",
40+
"binpunch": "^1.0.0",
4141
"chalk": "^5.6.2",
4242
"esbuild": "^0.25.0",
4343
"fast-check": "^4.5.3",

script/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
import { promisify } from "node:util";
2424
import { gzip } from "node:zlib";
25+
import { processBinary } from "binpunch";
2526
import { $ } from "bun";
2627
import pkg from "../package.json";
27-
import { processBinary } from "./hole-punch.js";
2828

2929
const gzipAsync = promisify(gzip);
3030

0 commit comments

Comments
 (0)