mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
Ship Go binaries inside per-platform npm packages (@alibaba-group/ocr-{os}-{arch})
so npm install resolves the correct binary via optionalDependencies + os/cpu fields.
This removes the need for a postinstall download from GitHub Releases, which is
extremely slow for users behind restricted networks (e.g. China mainland).
The postinstall download is retained as a fallback for --no-optional installs.
23 lines
424 B
JSON
23 lines
424 B
JSON
{
|
|
"name": "@alibaba-group/ocr-linux-x64",
|
|
"version": "0.0.0",
|
|
"description": "Platform binary for open-code-review (linux x64)",
|
|
"os": [
|
|
"linux"
|
|
],
|
|
"cpu": [
|
|
"x64"
|
|
],
|
|
"files": [
|
|
"bin/"
|
|
],
|
|
"preferUnplugged": true,
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/alibaba/open-code-review.git"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|