Skip to content

Commit b0e3c05

Browse files
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.
1 parent 75c612e commit b0e3c05

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"bin": {
66
"ocr": "bin/ocr.js"
77
},
8+
"files": [
9+
"bin/ocr.js",
10+
"scripts/install.js",
11+
"scripts/update.js",
12+
"scripts/platform.js",
13+
"imgs/"
14+
],
815
"scripts": {
916
"postinstall": "node scripts/install.js",
1017
"test:github-actions": "node scripts/github-actions/post-review-comments.test.js"

0 commit comments

Comments
 (0)