npm install
npm test
npm run lintAll tests are mocked (no API key needed). All test files should pass with 0 failures (a small number of skipped tests is expected).
Paste the final npm test output in your PR description so reviewers can verify.
If your change affects users (new feature, bug fix, changed output), add a changeset file. npm test warns if one is missing.
Create .changeset/<descriptive-name>.md:
---
"nansen-cli": patch
---
Short description (appears in CHANGELOG)patch = bug fix, minor = new feature, major = breaking change.
Skip for docs-only, test-only, or refactors with no behavior change.
Changesets are temporary — CI consumes them and auto-updates CHANGELOG.md when releasing.
ESLint enforces code quality. Auto-fix most issues with:
npm run lint:fixPrefix intentionally unused variables with _ (e.g. _err, _args).
-
npm testpasses (paste output in PR) -
npm run lintpasses - New code paths have tests + RPC mocks cover all methods
- No
console.login core, no hardcoded secrets - Error messages are actionable
- Changeset added (if user-facing)
-
src/schema.jsonupdated if new commands or options were added (file is maintained manually — no codegen)