@getclarify/nodejs-sdk
v0.0.5
Published
JavaScript/TypeScript SDK for Clarify platform
Downloads
2,790
Readme
@getclarify/nodejs-sdk
JavaScript/TypeScript SDK for the Clarify platform.
Prerequisites
- Node.js >= 18.0.0
- pnpm
Development
Install dependencies
pnpm installBuild
Build ESM, CJS, and type definitions:
pnpm run buildIndividual build targets:
pnpm run build:esm # ES modules
pnpm run build:cjs # CommonJS
pnpm run build:types # TypeScript declarationsClean build artifacts:
pnpm run cleanLint
pnpm run lint # Check for issues
pnpm run lint:fix # Auto-fix issuesTest
pnpm run test # Run tests once
pnpm run test:watch # Watch mode
pnpm run test:cov # With coverageType check
pnpm run tsc # One-time check
pnpm run tsc:watch # Watch modePublishing
1. Ensure tests pass and code is clean
pnpm run lint
pnpm run test
pnpm run build2. Update version
pnpm version patch # 0.0.1 -> 0.0.2
pnpm version minor # 0.0.1 -> 0.1.0
pnpm version major # 0.0.1 -> 1.0.03. Verify package contents
pnpm publish --dry-run4. Publish
pnpm publishAuthentication
If not logged in:
pnpm loginOr set a token for CI:
pnpm config set //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN