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