mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-10-02 09:24:52 +08: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user