- Node.js 20+
- pnpm
Clone the repo and install dependencies:
git clone https://github.com/flakiness/nodejs-sdk.git
cd nodejs-sdk
pnpm installThis project uses Kubik as its build system. The build script is defined in build.mts.
To build:
./build.mtsTo watch:
./build.mts -wThis will bundle the source with esbuild and generate TypeScript declarations.
To release a new version:
-
Bump the version:
# For a stable minor release pnpm version minor # For an alpha pre-release pnpm version preminor --preid=alpha
-
Push the commit and tag:
git push --follow-tags
-
Create a GitHub Release for the new tag and publish it.
CI will handle publishing to npm. Pre-releases are published under @next tag.