@haiku/optimizer-sdk
v0.0.1-alpha.5
Published
Haiku Optimizer SDK
Downloads
2
Readme
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:
- You're in `master with a clean working tree
- You're logged in in npm with the user
haikuadmin
, you can check that by runningnpm whoami
. A good way to do a one-off authentication is to set the enviroment variableNPM_TOKEN=xxxxx
with a token issued byhaikuadmin
. - 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.