napi-rs/cli
LongYinan 3187e30d5b
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.50
 - @napi-rs/triples@2.0.0-alpha.12
2024-04-17 20:23:19 +08:00
..
codegen
docs
src feat(cli): optimize wasm output binary (#2049) 2024-04-17 20:13:02 +08:00
.npmignore
CHANGELOG.md chore(release): publish 2024-04-17 20:23:19 +08:00
cli.mjs
esbuild.mjs feat(cli): optimize wasm output binary (#2049) 2024-04-17 20:13:02 +08:00
LICENSE
package.json chore(release): publish 2024-04-17 20:23:19 +08:00
README.md
tsconfig.json

@napi-rs/cli

Download Install size chat

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]