Developer Utility Scripts
Development on the Node wrapper involves various scripts for linting, formatting, and managing the development environment.
Development Environment Scripts
Section titled “Development Environment Scripts”# Launch a TypeScript REPL for interactive testingnpm run repl
# Clean only build artifactsnpm run clean:build
# Complete cleanup including node_modulesnpm run cleanLinters and Formatters
Section titled “Linters and Formatters”Development on the Node wrapper may involve changes in either the TypeScript or Rust code. Each language has distinct linter tests that must be passed before committing changes.
TypeScript and general files
Section titled “TypeScript and general files”# Run from the node folder# Check code quality with ESLintnpm run lint
# Automatically fix linting issuesnpm run lint:fix
# Check code formatting onlynpm run prettier:check
# Format code automaticallynpm run prettier:formatRust code
Section titled “Rust code”# Run from the `node/rust-client` folder# Format all files (Rust and others)npm run format
# Format only Rust filesnpm run format:rs
# Format only non-Rust files with Prettiernpm run format:prettier
# Alternatively, use Rust tools directly:rustup component add clippy rustfmtcargo clippy --all-features --all-targets -- -D warningscargo fmt --manifest-path ./Cargo.toml --all