a11ywatch / rust-to-npm

Rust to npm
https://crates.io/crates/rust-to-npm
MIT License
32 stars 4 forks source link

NPM Install not found #7

Closed JimLynchCodes closed 1 year ago

JimLynchCodes commented 1 year ago

Node version: v18.16.0

I run this command:

npm i -g rust-to-npm-cli

Which outputs:

changed 1 package in 759ms

But then I try to use it:

rust-to-npm build

And it says not found...

-bash: rust-to-npm: command not found

🤔

j-mendez commented 1 year ago

Fixed in v0.4.12. The refactor on the crate to split into a CLI and rust lib ended up breaking a few things 😅. Re-run npm i -g rust-to-npm-cli to get the latest.

Thanks again!

 rust-to-npm git:(main) npm i -g rust-to-npm-cli

added 1 package in 11s

(base) ➜  rust-to-npm git:(main) rust-to-npm-cli -h
rust-to-npm-cli 0.4.12
Jeff Mendez <jeff@a11ywatch.com>
deploy a rust project to npm in one command cli.

USAGE:
    rust-to-npm-cli [SUBCOMMAND]

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    build     Build the project for node
    deploy    Build and deploy the project to crates.io and npm
    help      Print this message or the help of the given subcommand(s)