Skip to content

Commit

Permalink
cli: Add fields os/cpu to npm cli package (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Nov 4, 2021
1 parent b354719 commit a22b949
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ incremented for features.

* cli: fix dns in NODE_OPTIONS ([#928](https://github.com/project-serum/anchor/pull/928)).
* cli: output TypeScript IDL in `idl parse` subcommand ([#941](https://github.com/project-serum/anchor/pull/941)).
* cli: Add fields `os` and `cpu` to npm package `@project-serum/anchor-cli` ([#976](https://github.com/project-serum/anchor/pull/976)).

## [0.18.0] - 2021-10-24

Expand Down
6 changes: 6 additions & 0 deletions cli/npm-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"scripts": {
"prepack": "[ \"$(uname -op)\" != \"x86_64 GNU/Linux\" ] && (echo Can be packed only on x86_64 GNU/Linux && exit 1) || ([ \"$(./anchor --version)\" != \"anchor-cli $(jq -r .version package.json)\" ] && (echo Check anchor binary version && exit 2) || exit 0)"
},
"os": [
"linux"
],
"cpu": [
"x64"
],
"publishConfig": {
"access": "public"
}
Expand Down

0 comments on commit a22b949

Please sign in to comment.