fb22a5ae07
* fix(cli): target selector is not available in interactive mode * fix(cli): js binding file should export * fix(cli): wrong node engine requirements syntax * feat(cli): support esm module * restore js binding implementation in v2 --------- Co-authored-by: LongYinan <lynweklm@gmail.com> |
||
---|---|---|
.. | ||
codegen | ||
docs | ||
src | ||
.npmignore | ||
ava.config.mjs | ||
CHANGELOG.md | ||
cli.mjs | ||
esbuild.mjs | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
@napi-rs/cli
Cli tools for napi-rs
# or npm, pnpm
yarn add @napi-rs/cli -D
yarn napi build
Commands
Command | desc | docs |
---|---|---|
new | create new napi-rs project | ./docs/new.md |
build | build napi-rs project | ./docs/build.md |
create-npm-dirs | Create npm package dirs for different platforms | ./docs/create-npm-dirs |
artifacts | Copy artifacts from Github Actions into specified dir | ./docs/artifacts.md |
rename | Rename the napi-rs project | ./docs/rename.md |
universalize | Combile built binaries into one universal binary | ./docs/universalize.md |
version | Update version in created npm packages by create-npm-dirs |
./docs/version.md |
pre-publish | Update package.json and copy addons into per platform packages | ./docs/pre-publish.md |
Debug mode
DEBUG="napi:*" napi [command]