mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 01:39:12 +00:00
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:
parent
810af47d4d
commit
a812e04495
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue