Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1005 Bytes

File metadata and controls

58 lines (37 loc) · 1005 Bytes

Contributing

Prerequisites

Getting Started

Clone the repo and install dependencies:

git clone https://github.com/flakiness/nodejs-sdk.git
cd nodejs-sdk
pnpm install

Building

This project uses Kubik as its build system. The build script is defined in build.mts.

To build:

./build.mts

To watch:

./build.mts -w

This will bundle the source with esbuild and generate TypeScript declarations.

Releasing

To release a new version:

  1. Bump the version:

    # For a stable minor release
    pnpm version minor
    
    # For an alpha pre-release
    pnpm version preminor --preid=alpha
  2. Push the commit and tag:

    git push --follow-tags
  3. Create a GitHub Release for the new tag and publish it.

    CI will handle publishing to npm. Pre-releases are published under @next tag.