fix: add files whitelist to exclude platform binaries from main package

The main npm package included all 6 platform binaries (~243MB) because
.npmignore did not exclude the opencodereview-* artifacts downloaded
during CI. Adding a files whitelist reduces the package from ~243MB
to ~1.4MB.
This commit is contained in:
kite 2026-06-17 17:20:34 +08:00
parent 810af47d4d
commit a812e04495

View file

@ -5,6 +5,13 @@
"bin": {
"ocr": "bin/ocr.js"
},
"files": [
"bin/ocr.js",
"scripts/install.js",
"scripts/update.js",
"scripts/platform.js",
"imgs/"
],
"scripts": {
"postinstall": "node scripts/install.js",
"test:github-actions": "node scripts/github-actions/post-review-comments.test.js"