From a812e044950454c7ef4298ca8ea3fad71edea6e1 Mon Sep 17 00:00:00 2001 From: kite Date: Wed, 17 Jun 2026 17:20:34 +0800 Subject: [PATCH] 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. --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index ce2c783..e6270cd 100644 --- a/package.json +++ b/package.json @@ -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"