open-index/open-npm huggingface dataset:
npm package: @haiku/optimizer-sdk
Description: Haiku Optimizer SDK
Author: The Haiku Team
Latest version: 0.0.1-alpha.5

### Optimizer SDK Javascript


This folder contains the source code and scripts to build and release `@haiku/optimizer-sdk` in npm and the Haiku CDN.
### Development

```bash
# To compile and watch for changes
yarn watch

# To run tests
yarn test

# To lint and fix the code
yarn lint
```

### Release

This package is released to npm and the Haiku CDN, to perform the release sanity check that:

1. You're in `master with a clean working tree
1. You're logged in in npm with the user `haikuadmin`, you can check that by running `npm whoami`. A good way to do a one-off authentication is to set the enviroment variable `NPM_TOKEN=xxxxx` with a token issued by `haikuadmin`.
1. The SDK works properly when built (you can use `yarn link` to test that)

The release script tries to sanity check most of the above, but it's always a good practice to sanity check by yourself first.

Once you're in a good place to proceed, run:

```bash
yarn release <version> <npm-tag>
```

*Setting the npm tag is important when doing beta releases*, otherwise npm assumes that the release is `latest` and serves that code for all new installs.