Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add npm package #438

Merged
merged 3 commits into from
Jun 29, 2021
Merged

Conversation

fanatid
Copy link
Contributor

@fanatid fanatid commented Jun 29, 2021

Resolve #427

This pull request adds npm package for anchor-cli but only for linux/x64. This should good for CI and for most of developers.

Steps for publishing:

$ make build-anchor-cli
$ cd cli/npm-package && npm publish

Possible improvements:

  1. Add js file as entrypoint which runs distributed binary in case of linux/x64 and global installed anchor otherwise (with version check).
  2. Try to build wasm module (not sure, is it possible with the current wasi state or not).

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@armaniferrante armaniferrante merged commit 7314c66 into coral-xyz:master Jun 29, 2021
@fanatid fanatid deleted the npm-anchor-cli branch June 29, 2021 21:09
@fanatid
Copy link
Contributor Author

fanatid commented Jun 29, 2021

Thanks! Can you publish a package?

@armaniferrante
Copy link
Member

Thanks! Can you publish a package?

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish anchor-cli on npm?
2 participants