0.0.1-alpha.5 • Published 4 years ago

@haiku/optimizer-sdk v0.0.1-alpha.5

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

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

# 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
  2. 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.
  3. 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:

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.